diff --git a/modules/rules_proto/6.0.0.bcr.1/MODULE.bazel b/modules/rules_proto/6.0.0.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..fdb608d1a2d --- /dev/null +++ b/modules/rules_proto/6.0.0.bcr.1/MODULE.bazel @@ -0,0 +1,19 @@ +"Bazel dependencies" + +module( + name = "rules_proto", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. + version = "6.0.0.bcr.1", + compatibility_level = 1, +) + +bazel_dep(name = "rules_license", version = "0.0.7") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "bazel_features", version = "1.4.1") +bazel_dep(name = "rules_cc", version = "0.0.1") + +# Dependencies needed in tests +bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True, repo_name = "io_bazel_stardoc") +bazel_dep(name = "googletest", version = "1.11.0", dev_dependency = True, repo_name = "com_google_googletest") +bazel_dep(name = "protobuf", version = "23.1", dev_dependency = True, repo_name = "com_google_protobuf") +bazel_dep(name = "platforms", version = "0.0.8", dev_dependency = True) diff --git a/modules/rules_proto/6.0.0.bcr.1/patches/module_dot_bazel_version.patch b/modules/rules_proto/6.0.0.bcr.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..38996b77307 --- /dev/null +++ b/modules/rules_proto/6.0.0.bcr.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,24 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index d69b785..fdb608d 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -3,17 +3,17 @@ + module( + name = "rules_proto", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. +- version = "0.0.0", ++ version = "6.0.0.bcr.1", + compatibility_level = 1, + ) + + bazel_dep(name = "rules_license", version = "0.0.7") + bazel_dep(name = "bazel_skylib", version = "1.3.0") + bazel_dep(name = "bazel_features", version = "1.4.1") ++bazel_dep(name = "rules_cc", version = "0.0.1") + + # Dependencies needed in tests + bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True, repo_name = "io_bazel_stardoc") +-bazel_dep(name = "rules_cc", version = "0.0.1", dev_dependency = True) + bazel_dep(name = "googletest", version = "1.11.0", dev_dependency = True, repo_name = "com_google_googletest") + bazel_dep(name = "protobuf", version = "23.1", dev_dependency = True, repo_name = "com_google_protobuf") + bazel_dep(name = "platforms", version = "0.0.8", dev_dependency = True) diff --git a/modules/rules_proto/6.0.0.bcr.1/presubmit.yml b/modules/rules_proto/6.0.0.bcr.1/presubmit.yml new file mode 100644 index 00000000000..f7bceee48da --- /dev/null +++ b/modules/rules_proto/6.0.0.bcr.1/presubmit.yml @@ -0,0 +1,10 @@ +matrix: + platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"] + bazel: ['7.x', '6.x'] +tasks: + verify_build_targets: + name: "Verify build targets" + bazel: ${{ bazel }} + platform: ${{ platform }} + build_targets: + - "@rules_proto//proto/..." diff --git a/modules/rules_proto/6.0.0.bcr.1/source.json b/modules/rules_proto/6.0.0.bcr.1/source.json new file mode 100644 index 00000000000..cbd6352b916 --- /dev/null +++ b/modules/rules_proto/6.0.0.bcr.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-MD6G5yKlIPbzJqULQc/Ba5j+bRlVzkZkKlt6Z8EcD10=", + "strip_prefix": "rules_proto-6.0.0", + "url": "https://github.com/bazelbuild/rules_proto/releases/download/6.0.0/rules_proto-6.0.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-O611MTM6jc/FSREFg1XadlJTs+0AEV0OXw5rymD9w74=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_proto/metadata.json b/modules/rules_proto/metadata.json index 735b8300f68..2e479d6e1e6 100644 --- a/modules/rules_proto/metadata.json +++ b/modules/rules_proto/metadata.json @@ -25,7 +25,8 @@ "6.0.0-rc1", "6.0.0-rc2", "6.0.0-rc3", - "6.0.0" + "6.0.0", + "6.0.0.bcr.1" ], "yanked_versions": {}, "repository": [