Skip to content

[email protected] #4815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions modules/rules_go/0.55.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
module(
name = "rules_go",
# Updated by the Publish to BCR app.
version = "0.55.1",
compatibility_level = 0,
repo_name = "io_bazel_rules_go",
)

# The custom repo_name is used to prevent our bazel_features polyfill for WORKSPACE builds from
# conflicting with the real bazel_features repo.
bazel_dep(name = "bazel_features", version = "1.9.1", repo_name = "io_bazel_rules_go_bazel_features")
bazel_dep(name = "bazel_skylib", version = "1.2.0")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_proto", version = "7.0.2")
bazel_dep(name = "protobuf", version = "29.0-rc2.bcr.1", repo_name = "com_google_protobuf")
bazel_dep(name = "rules_shell", version = "0.3.0")

go_sdk = use_extension("//go:extensions.bzl", "go_sdk")
# Don't depend on this repo by name, use toolchains instead.
# See https://github.com/bazel-contrib/rules_go/blob/master/go/toolchains.rst
go_sdk.from_file(
name = "go_default_sdk",
go_mod = "//:go.mod",
)
use_repo(
go_sdk,
"go_host_compatible_sdk_label",
"go_toolchains",
# This name is ugly on purpose to avoid a conflict with a user-named SDK.
"io_bazel_rules_nogo",
)

register_toolchains("@go_toolchains//:all")

bazel_dep(name = "gazelle", version = "0.36.0")

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"com_github_gogo_protobuf",
"com_github_golang_mock",
"com_github_golang_protobuf",
"com_github_pmezard_go_difflib",
"org_golang_google_genproto",
"org_golang_google_grpc",
"org_golang_google_grpc_cmd_protoc_gen_go_grpc",
"org_golang_google_protobuf",
"org_golang_x_net",
"org_golang_x_tools",
# Exported by gazelle specifically for rules_go.
"bazel_gazelle_go_repository_config",
)
13 changes: 13 additions & 0 deletions modules/rules_go/0.55.1/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
===================================================================
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,8 +1,8 @@
module(
name = "rules_go",
# Updated by the Publish to BCR app.
- version = "0.0.0",
+ version = "0.55.1",
compatibility_level = 0,
repo_name = "io_bazel_rules_go",
)

33 changes: 33 additions & 0 deletions modules/rules_go/0.55.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
matrix:
platform:
- debian11
- ubuntu2004_arm64
- macos_arm64
- windows
bazel: [7.x, 8.x]
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- "@rules_go//go/tools/bzltestutil/..."
bcr_test_module:
module_path: tests/bcr
matrix:
platform:
- debian11
- ubuntu2004_arm64
- macos_arm64
- windows
bazel: [7.x, 8.x]
tasks:
run_test_module:
name: Run test module
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- //...
- "@go_default_sdk//..."
test_targets:
- //...
9 changes: 9 additions & 0 deletions modules/rules_go/0.55.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-nXL3uJBBKK+5jUa774KtciPsn/NxjUGa+zVf3dn5SEo=",
"strip_prefix": "",
"url": "https://github.com/bazel-contrib/rules_go/releases/download/v0.55.1/rules_go-v0.55.1.zip",
"patches": {
"module_dot_bazel_version.patch": "sha256-iyEC8ehyzJs4Gx1yAHTtUyzRJpdHHRhzU6FIar9qeis="
},
"patch_strip": 1
}
3 changes: 2 additions & 1 deletion modules/rules_go/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"0.53.0",
"0.54.0",
"0.54.1",
"0.55.0"
"0.55.0",
"0.55.1"
],
"yanked_versions": {
"0.33.0": "Obsolete experimental version that emits debug prints. Update to 0.39.1 or higher",
Expand Down
Loading