-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release: https://github.com/bazel-contrib/rules_go/releases/tag/v0.51.0-rc2 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ --------- Co-authored-by: Fabian Meumertzheim <[email protected]>
- Loading branch information
1 parent
f58a48a
commit 9ae575a
Showing
5 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
module( | ||
name = "rules_go", | ||
# Updated by the Publish to BCR app. | ||
version = "0.51.0-rc2", | ||
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 = "6.0.0") | ||
bazel_dep(name = "protobuf", version = "3.19.2", repo_name = "com_google_protobuf") | ||
bazel_dep(name = "rules_shell", version = "0.3.0") | ||
|
||
go_sdk = use_extension("//go:extensions.bzl", "go_sdk") | ||
go_sdk.download( | ||
name = "go_default_sdk", | ||
version = "1.22.7", | ||
) | ||
use_repo( | ||
go_sdk, | ||
"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", | ||
"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
13
modules/rules_go/0.51.0-rc2/patches/module_dot_bazel_version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.51.0-rc2", | ||
compatibility_level = 0, | ||
repo_name = "io_bazel_rules_go", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
matrix: | ||
platform: | ||
- debian10 | ||
- ubuntu2004 | ||
- macos | ||
- macos_arm64 | ||
- windows | ||
bazel: [6.x, 7.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: | ||
- debian10 | ||
- ubuntu2004 | ||
- macos | ||
- macos_arm64 | ||
- windows | ||
bazel: [6.x, 7.x] | ||
tasks: | ||
run_test_module: | ||
name: Run test module | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_targets: | ||
- //... | ||
- '@go_default_sdk//...' | ||
test_targets: | ||
- //... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"integrity": "sha256-EQHX6Bpuf5zulN2Ue+1wUUS/M5JX++wdc9Yg34fliIU=", | ||
"strip_prefix": "", | ||
"url": "https://github.com/bazel-contrib/rules_go/releases/download/v0.51.0-rc2/rules_go-v0.51.0-rc2.zip", | ||
"patches": { | ||
"module_dot_bazel_version.patch": "sha256-2PJEKChiCWfklE+MizCY2qvcLAt2pyAMV4Eh8zWyTb4=" | ||
}, | ||
"patch_strip": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters