Skip to content

Commit 6acac59

Browse files
rules_go@0.57.0 (#5617)
Release: https://github.com/bazel-contrib/rules_go/releases/tag/v0.57.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
1 parent 7dafc97 commit 6acac59

5 files changed

Lines changed: 110 additions & 1 deletion

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
module(
2+
name = "rules_go",
3+
compatibility_level = 0,
4+
repo_name = "io_bazel_rules_go",
5+
version = "0.57.0",
6+
)
7+
8+
# The custom repo_name is used to prevent our bazel_features polyfill for WORKSPACE builds from
9+
# conflicting with the real bazel_features repo.
10+
bazel_dep(name = "bazel_features", version = "1.9.1", repo_name = "io_bazel_rules_go_bazel_features")
11+
bazel_dep(name = "bazel_skylib", version = "1.2.0")
12+
bazel_dep(name = "platforms", version = "1.0.0")
13+
bazel_dep(name = "rules_proto", version = "7.0.2")
14+
bazel_dep(name = "protobuf", version = "29.0-rc2.bcr.1", repo_name = "com_google_protobuf")
15+
bazel_dep(name = "rules_shell", version = "0.3.0")
16+
17+
go_sdk = use_extension("//go:extensions.bzl", "go_sdk")
18+
19+
# Don't depend on this repo by name, use toolchains instead.
20+
# See https://github.com/bazel-contrib/rules_go/blob/master/go/toolchains.rst
21+
go_sdk.from_file(
22+
name = "go_default_sdk",
23+
go_mod = "//:go.mod",
24+
)
25+
use_repo(
26+
go_sdk,
27+
"go_host_compatible_sdk_label",
28+
"go_toolchains",
29+
# This name is ugly on purpose to avoid a conflict with a user-named SDK.
30+
"io_bazel_rules_nogo",
31+
)
32+
33+
register_toolchains("@go_toolchains//:all")
34+
35+
bazel_dep(name = "gazelle", version = "0.36.0")
36+
37+
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
38+
go_deps.from_file(go_mod = "//:go.mod")
39+
use_repo(
40+
go_deps,
41+
"com_github_gogo_protobuf",
42+
"com_github_golang_mock",
43+
"com_github_golang_protobuf",
44+
"com_github_pmezard_go_difflib",
45+
"org_golang_google_genproto",
46+
"org_golang_google_grpc",
47+
"org_golang_google_grpc_cmd_protoc_gen_go_grpc",
48+
"org_golang_google_protobuf",
49+
"org_golang_x_net",
50+
"org_golang_x_tools",
51+
# Exported by gazelle specifically for rules_go.
52+
"bazel_gazelle_go_repository_config",
53+
)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -1,8 +1,9 @@
5+
module(
6+
name = "rules_go",
7+
compatibility_level = 0,
8+
repo_name = "io_bazel_rules_go",
9+
+ version = "0.57.0",
10+
)
11+
12+
# The custom repo_name is used to prevent our bazel_features polyfill for WORKSPACE builds from
13+
# conflicting with the real bazel_features repo.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
matrix:
2+
platform:
3+
- debian11
4+
- ubuntu2004_arm64
5+
- macos_arm64
6+
- windows
7+
bazel: [7.x, 8.x]
8+
tasks:
9+
verify_targets:
10+
name: Verify build targets
11+
platform: ${{ platform }}
12+
bazel: ${{ bazel }}
13+
build_targets:
14+
- "@rules_go//go/tools/bzltestutil/..."
15+
bcr_test_module:
16+
module_path: tests/bcr
17+
matrix:
18+
platform:
19+
- debian11
20+
- ubuntu2004_arm64
21+
- macos_arm64
22+
- windows
23+
bazel: [7.x, 8.x]
24+
tasks:
25+
run_test_module:
26+
name: Run test module
27+
platform: ${{ platform }}
28+
bazel: ${{ bazel }}
29+
build_targets:
30+
- //...
31+
- "@go_default_sdk//..."
32+
test_targets:
33+
- //...
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-pynI7SRHyQ/hQAd2iQecoKz7dYDsQWN/MS1lDOnZPZY=",
3+
"strip_prefix": "",
4+
"url": "https://github.com/bazel-contrib/rules_go/releases/download/v0.57.0/rules_go-v0.57.0.zip",
5+
"patches": {
6+
"module_dot_bazel_version.patch": "sha256-KkisdOoMre7hW4vxBwzJT1boqmNW8/+ElOmIO+0hbsA="
7+
},
8+
"patch_strip": 1
9+
}

modules/rules_go/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
"0.55.0",
6161
"0.55.1",
6262
"0.56.0",
63-
"0.56.1"
63+
"0.56.1",
64+
"0.57.0"
6465
],
6566
"yanked_versions": {
6667
"0.33.0": "Obsolete experimental version that emits debug prints. Update to 0.39.1 or higher",

0 commit comments

Comments
 (0)