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
|
|
|
|
2021-12-09 00:47:45 +00:00
|
|
|
load("//lib:repositories.bzl", "aspect_bazel_lib_dependencies")
|
|
|
|
|
|
|
|
aspect_bazel_lib_dependencies()
|
|
|
|
|
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-04-27 04:07:17 +00:00
|
|
|
# Avoid descending into the e2e workspaces
|
|
|
|
local_repository(
|
|
|
|
name = "e2e_bzlmod",
|
|
|
|
path = "./e2e/bzlmod",
|
|
|
|
)
|
|
|
|
|
2021-11-08 14:20:26 +00:00
|
|
|
############################################
|
|
|
|
# Gazelle, for generating bzl_library targets
|
|
|
|
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
|
|
|
|
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
|
|
|
|
|
|
|
|
go_rules_dependencies()
|
|
|
|
|
|
|
|
go_register_toolchains(version = "1.17.2")
|
|
|
|
|
|
|
|
gazelle_dependencies()
|