workspace( name = "bazel-zig-cc", ) load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_go", sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip", "https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip", ], ) http_archive( name = "bazel_gazelle", sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb", urls = [ "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", ], ) 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") load("//:repositories.bzl", "go_repositories") # gazelle:repository_macro repositories.bzl%go_repositories go_repositories() gazelle_dependencies(go_repository_default_config = "@//:WORKSPACE") # protobuf is required for //:buildifier http_archive( name = "com_google_protobuf", 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") protobuf_deps() load( "//toolchain:defs.bzl", zig_register_toolchains = "register_toolchains", ) _REGISTER_TOOLCHAINS = [ "linux_arm64_gnu.2.28", "linux_amd64_gnu.2.28", "darwin_amd64", "darwin_arm64", ] zig_register_toolchains(register = _REGISTER_TOOLCHAINS)