diff --git a/modules/rules_go/0.42.0/MODULE.bazel b/modules/rules_go/0.42.0/MODULE.bazel new file mode 100644 index 00000000000..e63351cca77 --- /dev/null +++ b/modules/rules_go/0.42.0/MODULE.bazel @@ -0,0 +1,47 @@ +module( + name = "rules_go", + version = "0.42.0", + compatibility_level = 0, + repo_name = "io_bazel_rules_go", +) + +bazel_dep(name = "bazel_features", version = "1.1.0") +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.33.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", +) diff --git a/modules/rules_go/0.42.0/presubmit.yml b/modules/rules_go/0.42.0/presubmit.yml new file mode 100644 index 00000000000..5e29afff604 --- /dev/null +++ b/modules/rules_go/0.42.0/presubmit.yml @@ -0,0 +1,33 @@ +matrix: + platform: + - centos7 + - 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: + - centos7 + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + build_targets: + - //... + - '@go_default_sdk//...' + test_targets: + - //... diff --git a/modules/rules_go/0.42.0/source.json b/modules/rules_go/0.42.0/source.json new file mode 100644 index 00000000000..1569fc886da --- /dev/null +++ b/modules/rules_go/0.42.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-kVhQF967YZgvcFTJaIhXoq0f2CP8P5ywUEiwAlxH0CM=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip" +} diff --git a/modules/rules_go/metadata.json b/modules/rules_go/metadata.json index ad3d453e53f..5d421851e50 100644 --- a/modules/rules_go/metadata.json +++ b/modules/rules_go/metadata.json @@ -22,7 +22,8 @@ "0.39.1", "0.40.0", "0.40.1", - "0.41.0" + "0.41.0", + "0.42.0" ], "yanked_versions": { "0.33.0": "Obsolete experimental version that emits debug prints. Update to 0.39.1 or higher",