bazel-lib/WORKSPACE

43 lines
1.2 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
2021-12-09 00:47:45 +00:00
load("//lib:repositories.bzl", "aspect_bazel_lib_dependencies")
aspect_bazel_lib_dependencies(override_local_config_platform = True)
2021-12-09 00:47:45 +00:00
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")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
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")
go_rules_dependencies()
go_register_toolchains(version = "1.18.3")
2021-11-08 14:20:26 +00:00
gazelle_dependencies()