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()
|
|
|
|
|
2023-11-15 23:07:03 +00:00
|
|
|
load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")
|
|
|
|
|
|
|
|
stardoc_repositories()
|
|
|
|
|
2023-10-10 19:16:13 +00:00
|
|
|
load("//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains")
|
2021-12-09 00:47:45 +00:00
|
|
|
|
2023-10-05 21:22:38 +00:00
|
|
|
aspect_bazel_lib_dependencies()
|
2021-12-09 00:47:45 +00:00
|
|
|
|
2023-10-10 19:16:13 +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()
|
|
|
|
|
2021-11-17 05:30:32 +00:00
|
|
|
# An external repository for test to use
|
|
|
|
local_repository(
|
|
|
|
name = "external_test_repo",
|
|
|
|
path = "./lib/tests/external_test_repo",
|
|
|
|
)
|
|
|
|
|
2022-09-16 18:51:48 +00:00
|
|
|
load("//lib:host_repo.bzl", "host_repo")
|
|
|
|
|
|
|
|
host_repo(name = "aspect_bazel_lib_host")
|
|
|
|
|
2023-09-24 22:06:10 +00:00
|
|
|
############################################
|
|
|
|
# rules_go
|
|
|
|
|
2023-01-03 17:42:20 +00:00
|
|
|
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()
|
2022-10-27 13:43:26 +00:00
|
|
|
|
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()
|
|
|
|
|
2022-10-27 13:43:26 +00:00
|
|
|
go_register_toolchains(version = "1.18.3")
|
2021-11-08 14:20:26 +00:00
|
|
|
|
2023-09-24 22:06:10 +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()
|
2023-12-08 07:34:24 +00:00
|
|
|
|
|
|
|
# rules_lint
|
|
|
|
load(
|
|
|
|
"@aspect_rules_lint//format:repositories.bzl",
|
|
|
|
"fetch_shfmt",
|
|
|
|
)
|
|
|
|
|
|
|
|
fetch_shfmt()
|
|
|
|
|
2024-01-13 21:38:51 +00:00
|
|
|
load("//.aspect/workflows:deps.bzl", "fetch_workflows_deps")
|
|
|
|
|
|
|
|
fetch_workflows_deps()
|