1
Fork 0
hermetic_cc_toolchain/WORKSPACE

64 lines
1.9 KiB
Python
Raw Normal View History

2021-04-10 01:05:01 +03:00
workspace(
2021-06-11 06:43:15 +03:00
name = "bazel-zig-cc",
2021-04-10 01:05:01 +03:00
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2021-06-07 22:24:26 +03:00
http_archive(
name = "io_bazel_rules_go",
2022-02-05 11:07:58 +02:00
sha256 = "d6b2513456fe2229811da7eb67a444be7785f5323c6708b38d851d2b51e54d83",
2021-06-07 22:24:26 +03:00
urls = [
2022-02-05 11:07:58 +02:00
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.30.0/rules_go-v0.30.0.zip",
2021-06-07 22:24:26 +03:00
],
)
http_archive(
name = "bazel_gazelle",
2021-12-22 11:16:01 +02:00
sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb",
2021-06-07 22:24:26 +03:00
urls = [
2021-12-22 11:16:01 +02:00
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
2021-06-07 22:24:26 +03:00
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
2021-06-07 22:40:51 +03:00
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
2021-06-07 22:24:26 +03:00
go_rules_dependencies()
2021-12-22 11:16:01 +02:00
go_register_toolchains(version = "1.17")
2021-06-07 22:24:26 +03:00
2021-07-21 14:59:33 +03:00
load("//:repositories.bzl", "go_repositories")
# gazelle:repository_macro repositories.bzl%go_repositories
go_repositories()
gazelle_dependencies(go_repository_default_config = "@//:WORKSPACE")
2021-06-10 13:12:54 +03:00
# protobuf is required for //:buildifier
http_archive(
name = "com_google_protobuf",
2021-12-22 11:16:01 +02:00
sha256 = "25f1292d4ea6666f460a2a30038eef121e6c3937ae0f61d610611dfb14b0bd32",
strip_prefix = "protobuf-3.19.1",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.19.1.zip"],
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
2021-06-10 13:12:54 +03:00
protobuf_deps()
2021-06-10 13:12:54 +03:00
load(
"//toolchain:defs.bzl",
zig_register_toolchains = "register_toolchains",
2021-04-10 01:05:01 +03:00
)
_REGISTER_TOOLCHAINS = [
"linux_arm64_gnu.2.28",
"linux_amd64_gnu.2.19",
"darwin_amd64",
"darwin_arm64",
]
zig_register_toolchains(register = _REGISTER_TOOLCHAINS)