diff --git a/modules/rules_go/0.47.1/MODULE.bazel b/modules/rules_go/0.47.1/MODULE.bazel new file mode 100644 index 0000000000..0077a5ae7e --- /dev/null +++ b/modules/rules_go/0.47.1/MODULE.bazel @@ -0,0 +1,47 @@ +module( + name = "rules_go", + version = "0.47.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.4") +bazel_dep(name = "rules_proto", version = "4.0.0") +bazel_dep(name = "protobuf", version = "3.19.2", repo_name = "com_google_protobuf") + +go_sdk = use_extension("//go:extensions.bzl", "go_sdk") +go_sdk.download( + name = "go_default_sdk", + version = "1.21.8", +) +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", +) diff --git a/modules/rules_go/0.47.1/presubmit.yml b/modules/rules_go/0.47.1/presubmit.yml new file mode 100644 index 0000000000..078639a191 --- /dev/null +++ b/modules/rules_go/0.47.1/presubmit.yml @@ -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: + - //... diff --git a/modules/rules_go/0.47.1/source.json b/modules/rules_go/0.47.1/source.json new file mode 100644 index 0000000000..407dc6225f --- /dev/null +++ b/modules/rules_go/0.47.1/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-90yY1t9VIXo2hZx0tGDndKvAQQpHzBANgivjTV+ZDxY=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_go/releases/download/v0.47.1/rules_go-v0.47.1.zip" +} diff --git a/modules/rules_go/metadata.json b/modules/rules_go/metadata.json index 5e0ca8befc..6122580c60 100644 --- a/modules/rules_go/metadata.json +++ b/modules/rules_go/metadata.json @@ -40,7 +40,8 @@ "0.44.2", "0.45.1", "0.46.0", - "0.47.0" + "0.47.0", + "0.47.1" ], "yanked_versions": { "0.33.0": "Obsolete experimental version that emits debug prints. Update to 0.39.1 or higher",