Skip to content

Commit a65c1ac

Browse files
authored
Update bazel_dep versions in bzlmod.md (#4445)
**What type of PR is this?** Documentation **What does this PR do? Why is it needed?** The older versions specified in the documentation don't work with `go_work`, which leads to confusing errors
1 parent 20f7e2b commit a65c1ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/go/core/bzlmod.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ Usages of rules_go and Gazelle in `BUILD` files are not affected by this; refer
88
Add the following lines to your `MODULE.bazel` file:
99

1010
```starlark
11-
bazel_dep(name = "rules_go", version = "0.39.1")
12-
bazel_dep(name = "gazelle", version = "0.31.0")
11+
bazel_dep(name = "rules_go", version = "0.57.0")
12+
bazel_dep(name = "gazelle", version = "0.45.0")
1313
```
1414

1515
The latest versions are always listed on https://registry.bazel.build/.
1616

1717
If you have WORKSPACE dependencies that reference rules_go and/or Gazelle, you can still use the legacy repository names for the two repositories:
1818

1919
```starlark
20-
bazel_dep(name = "rules_go", version = "0.39.1", repo_name = "io_bazel_rules_go")
21-
bazel_dep(name = "gazelle", version = "0.31.0", repo_name = "bazel_gazelle")
20+
bazel_dep(name = "rules_go", version = "0.57.0", repo_name = "io_bazel_rules_go")
21+
bazel_dep(name = "gazelle", version = "0.45.0", repo_name = "bazel_gazelle")
2222
```
2323

2424
## Go SDKs

0 commit comments

Comments
 (0)