2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-26 13:30:30 +00:00
bazel-lib/WORKSPACE

85 lines
2.1 KiB
Python
Raw Normal View History

2021-11-08 14:20:26 +00:00
# Declare the local Bazel workspace.
# This is *not* included in the published distribution.
workspace(
# see https://docs.bazel.build/versions/main/skylark/deploying.html#workspace
2021-11-08 14:40:36 +00:00
name = "aspect_bazel_lib",
2021-11-08 14:20:26 +00:00
)
2021-11-08 14:40:36 +00:00
load(":internal_deps.bzl", "bazel_lib_internal_deps")
2021-11-08 14:20:26 +00:00
# Fetch deps needed only locally for development
2021-11-08 14:40:36 +00:00
bazel_lib_internal_deps()
2021-11-08 14:20:26 +00:00
2024-01-08 00:12:05 +00:00
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")
stardoc_repositories()
load("//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains")
2021-12-09 00:47:45 +00:00
aspect_bazel_lib_dependencies()
2021-12-09 00:47:45 +00:00
aspect_bazel_lib_register_toolchains()
2021-11-08 15:22:47 +00:00
# For running our own unit tests
load("@bazel_skylib//lib:unittest.bzl", "register_unittest_toolchains")
register_unittest_toolchains()
# An external repository for test to use
local_repository(
name = "external_test_repo",
path = "./lib/tests/external_test_repo",
)
load("//lib:host_repo.bzl", "host_repo")
host_repo(name = "aspect_bazel_lib_host")
############################################
# rules_go
load("//:deps.bzl", "go_dependencies")
# gazelle:repository_macro deps.bzl%go_dependencies
# gazelle:repository go_repository name=org_golang_x_tools importpath=golang.org/x/tools
# https://github.com/bazelbuild/bazel-gazelle/issues/1217#issuecomment-1152236735
go_dependencies()
2021-11-08 14:20:26 +00:00
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.18.3")
2021-11-08 14:20:26 +00:00
############################################
# Gazelle, for generating bzl_library targets
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
2021-11-08 14:20:26 +00:00
gazelle_dependencies()
2023-06-09 22:26:34 +00:00
# Buildifier
load("@buildifier_prebuilt//:deps.bzl", "buildifier_prebuilt_deps")
buildifier_prebuilt_deps()
load("@buildifier_prebuilt//:defs.bzl", "buildifier_prebuilt_register_toolchains")
buildifier_prebuilt_register_toolchains()
# rules_lint
load(
"@aspect_rules_lint//format:repositories.bzl",
"fetch_shfmt",
)
fetch_shfmt()
load("//.aspect/workflows:deps.bzl", "fetch_workflows_deps")
fetch_workflows_deps()