Skip to content

Commit 4f25f44

Browse files
authored
Commit MODULE.bazel.lock files (#4484)
**What type of PR is this?** > Other **What does this PR do? Why is it needed?** This ensures rules_go developers always see the same bits when downloading files. We should see a security error if a module version changes upstream. **Which issues(s) does this PR fix?** Fixes #4483 **Other notes for review**
1 parent 74199c9 commit 4f25f44

File tree

10 files changed

+3833
-6
lines changed

10 files changed

+3833
-6
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@
55
/examples/*/bazel-*
66
/.ijwb/
77
/tests/bcr/.ijwb/
8-
9-
MODULE.bazel.lock

MODULE.bazel.lock

Lines changed: 2139 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# there, but it is required to build the examples.
66

77
common:ci --enable_bzlmod
8+
common:ci --lockfile_mode=error
89
common:ci --color=no
910
common:ci --verbose_failures
1011
common:ci --sandbox_debug
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.4.2

examples/basic_gazelle/MODULE.bazel.lock

Lines changed: 222 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/hello/.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.4.2

examples/hello/MODULE.bazel.lock

Lines changed: 220 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/bcr/.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
common --enable_bzlmod
2+
common --lockfile_mode=error
23
build --@my_rules_go//go/toolchain:sdk_version=1.23.1

tests/bcr/MODULE.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ local_path_override(
1818
path = "../..",
1919
)
2020

21-
bazel_dep(name = "gazelle", version = "0.33.0")
22-
bazel_dep(name = "protobuf", version = "3.19.6")
21+
bazel_dep(name = "gazelle", version = "0.36.0")
22+
bazel_dep(name = "protobuf", version = "29.0-rc2.bcr.1")
2323
bazel_dep(name = "rules_shell", version = "0.4.1")
2424

2525
# Required with --incompatible_enable_proto_toolchain_resolution.
@@ -57,8 +57,8 @@ use_repo(go_sdk, "go_host_compatible_sdk_label")
5757
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
5858
go_deps.module(
5959
path = "google.golang.org/grpc",
60-
sum = "h1:pnP7OclFFFgFi4VHQDQDaoXUVauOFyktqTsqqgzFKbc=",
61-
version = "v1.40.1",
60+
sum = "h1:OgPcDAFKHnH8X3O4WcO4XUc8GRDeKsKReqbQtiCj7N8=",
61+
version = "v1.67.3",
6262
)
6363

6464
# Read in go_tool_test.sh.

tests/bcr/MODULE.bazel.lock

Lines changed: 1244 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)