| """Declare runtime dependencies |
| |
| These are needed for local dev, and users must install them as well. |
| See https://docs.bazel.build/versions/main/skylark/deploying.html#dependencies |
| """ |
| |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", _http_archive = "http_archive") |
| load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") |
| |
| def http_archive(name, **kwargs): |
| maybe(_http_archive, name = name, **kwargs) |
| |
| # WARNING: any changes in this function may be BREAKING CHANGES for users |
| # because we'll fetch a dependency which may be different from one that |
| # they were previously fetching later in their WORKSPACE setup, and now |
| # ours took precedence. Such breakages are challenging for users, so any |
| # changes in this function should be marked as BREAKING in the commit message |
| # and released only in semver majors. |
| # This is all fixed by bzlmod, so we just tolerate it for now. |
| def rules_protoc_dependencies(): |
| # The minimal version of bazel_skylib we require |
| http_archive( |
| name = "bazel_skylib", |
| sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94", |
| urls = [ |
| "https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz", |
| "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz", |
| ], |
| ) |
| |
| http_archive( |
| name = "rules_proto", |
| sha256 = "71fdbed00a0709521ad212058c60d13997b922a5d01dbfd997f0d57d689e7b67", |
| strip_prefix = "rules_proto-6.0.0-rc2", |
| url = "https://github.com/bazelbuild/rules_proto/releases/download/6.0.0-rc2/rules_proto-6.0.0-rc2.tar.gz", |
| ) |