Skip to content
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

rules_go@0.43.0 #1140

Merged
merged 2 commits into from
Nov 20, 2023
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
47 changes: 47 additions & 0 deletions modules/rules_go/0.43.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module(
name = "rules_go",
version = "0.43.0",
compatibility_level = 0,
repo_name = "io_bazel_rules_go",
)

bazel_dep(name = "bazel_features", version = "1.1.1")
bazel_dep(name = "bazel_skylib", version = "1.2.0")
bazel_dep(name = "platforms", version = "0.0.4")
bazel_dep(name = "rules_proto", version = "4.0.0")
bazel_dep(name = "protobuf", version = "3.19.2", repo_name = "com_google_protobuf")

non_module_dependencies = use_extension("//go/private:extensions.bzl", "non_module_dependencies")
use_repo(
non_module_dependencies,
"io_bazel_rules_nogo",
)

go_sdk = use_extension("//go:extensions.bzl", "go_sdk")
go_sdk.download(
name = "go_default_sdk",
version = "1.21.1",
)
use_repo(go_sdk, "go_toolchains")

register_toolchains("@go_toolchains//:all")

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

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
go_deps.module(
path = "github.com/gogo/protobuf",
sum = "h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=",
version = "v1.3.2",
)
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_protobuf",
"org_golang_x_net",
)
31 changes: 31 additions & 0 deletions modules/rules_go/0.43.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
build_targets:
- '@rules_go//go/tools/bzltestutil/...'
bcr_test_module:
module_path: tests/bcr
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
tasks:
run_test_module:
name: Run test module
platform: ${{ platform }}
build_targets:
- //...
- '@go_default_sdk//...'
test_targets:
- //...
5 changes: 5 additions & 0 deletions modules/rules_go/0.43.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "sha256-1qtrV+SMCVI+kwUPE2mPcIQoz9XmGSUuNp03evZZdwc=",
"strip_prefix": "",
"url": "https://github.com/bazelbuild/rules_go/releases/download/v0.43.0/rules_go-v0.43.0.zip"
}
13 changes: 2 additions & 11 deletions modules/rules_go/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
"email": "fabian@meumertzhe.im",
"github": "fmeum",
"name": "Fabian Meumertzheim"
},
{
"email": "zplin@uber.com",
"github": "linzhp",
"name": "Zhongpeng Lin"
},
{
"email": "tfrench@uber.com",
"github": "tyler-french",
"name": "Tyler French"
Comment on lines -9 to -17
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this intentional? You may want to add these maintainers into your .bcr/metadata.template.json to they don't get overwritten.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tyler-french Could you send the change you made to the BCR to rules_go itself?

}
],
"repository": [
Expand All @@ -33,7 +23,8 @@
"0.40.0",
"0.40.1",
"0.41.0",
"0.42.0"
"0.42.0",
"0.43.0"
],
"yanked_versions": {
"0.33.0": "Obsolete experimental version that emits debug prints. Update to 0.39.1 or higher",
Expand Down