| # Override http_archive for local testing |
| local_repository( |
| name = "toolchains_protoc", |
| path = "../..", |
| ) |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "rules_shell", |
| sha256 = "bc61ef94facc78e20a645726f64756e5e285a045037c7a61f65af2941f4c25e1", |
| strip_prefix = "rules_shell-0.4.1", |
| url = "https://github.com/bazelbuild/rules_shell/releases/download/v0.4.1/rules_shell-v0.4.1.tar.gz", |
| ) |
| |
| #---SNIP--- Below here is re-used in the workspace snippet published on releases |
| |
| ###################### |
| # toolchains_protoc setup # |
| ###################### |
| # Fetches the toolchains_protoc dependencies. |
| # If you want to have a different version of some dependency, |
| # you should fetch it *before* calling this. |
| # Alternatively, you can skip calling this function, so long as you've |
| # already fetched all the dependencies. |
| load("@toolchains_protoc//protoc:repositories.bzl", "rules_protoc_dependencies") |
| |
| rules_protoc_dependencies() |
| |
| load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies") |
| |
| rules_proto_dependencies() |
| |
| load("@bazel_features//:deps.bzl", "bazel_features_deps") |
| |
| bazel_features_deps() |
| |
| load("@toolchains_protoc//protoc:toolchain.bzl", "protoc_toolchains") |
| |
| protoc_toolchains( |
| name = "protoc_toolchains", |
| version = "v25.3", |
| ) |