From 869056122fd3012afa90818ea17574fd5fbcf16b Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Mon, 1 Jul 2024 16:21:25 +0000 Subject: [PATCH 01/52] add open62541 to BCR --- modules/open62541/1.4.1/BUILD.bazel | 10 ++++++++++ modules/open62541/1.4.1/MODULE.bazel | 4 ++++ .../1.4.1/patches/add_build_file.patch | 17 +++++++++++++++++ .../1.4.1/patches/module_dot_bazel.patch | 8 ++++++++ modules/open62541/1.4.1/presubmit.yml | 14 ++++++++++++++ modules/open62541/1.4.1/source.json | 10 ++++++++++ modules/open62541/metadata.json | 16 ++++++++++++++++ 7 files changed, 79 insertions(+) create mode 100644 modules/open62541/1.4.1/BUILD.bazel create mode 100644 modules/open62541/1.4.1/MODULE.bazel create mode 100644 modules/open62541/1.4.1/patches/add_build_file.patch create mode 100644 modules/open62541/1.4.1/patches/module_dot_bazel.patch create mode 100644 modules/open62541/1.4.1/presubmit.yml create mode 100644 modules/open62541/1.4.1/source.json create mode 100644 modules/open62541/metadata.json diff --git a/modules/open62541/1.4.1/BUILD.bazel b/modules/open62541/1.4.1/BUILD.bazel new file mode 100644 index 00000000000..f421d34fa24 --- /dev/null +++ b/modules/open62541/1.4.1/BUILD.bazel @@ -0,0 +1,10 @@ +cc_library( + name = "open62541", + srcs = ["lib/libopen62541.a"], + hdrs = glob([ + "include/open62541/*.h", + "include/open62541/plugin/*.h", + ]), + strip_include_prefix = "include", + visibility = ["//visibility:public"], +) \ No newline at end of file diff --git a/modules/open62541/1.4.1/MODULE.bazel b/modules/open62541/1.4.1/MODULE.bazel new file mode 100644 index 00000000000..f0b9d1a851c --- /dev/null +++ b/modules/open62541/1.4.1/MODULE.bazel @@ -0,0 +1,4 @@ +module( + name = "open62541", + version = "1.4.1", +) diff --git a/modules/open62541/1.4.1/patches/add_build_file.patch b/modules/open62541/1.4.1/patches/add_build_file.patch new file mode 100644 index 00000000000..2e8f8210c04 --- /dev/null +++ b/modules/open62541/1.4.1/patches/add_build_file.patch @@ -0,0 +1,17 @@ +diff --git /dev/null BUILD.bazel +new file mode 100644 +index 00000000..f421d34f +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,10 @@ ++cc_library( ++ name = "open62541", ++ srcs = ["lib/libopen62541.a"], ++ hdrs = glob([ ++ "include/open62541/*.h", ++ "include/open62541/plugin/*.h", ++ ]), ++ strip_include_prefix = "include", ++ visibility = ["//visibility:public"], ++) +\ No newline at end of file diff --git a/modules/open62541/1.4.1/patches/module_dot_bazel.patch b/modules/open62541/1.4.1/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..9e633800515 --- /dev/null +++ b/modules/open62541/1.4.1/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "open62541", ++ version = "1.4.1", ++ compatibility_level = 0, ++) diff --git a/modules/open62541/1.4.1/presubmit.yml b/modules/open62541/1.4.1/presubmit.yml new file mode 100644 index 00000000000..622c3f66d25 --- /dev/null +++ b/modules/open62541/1.4.1/presubmit.yml @@ -0,0 +1,14 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@open62541:*' diff --git a/modules/open62541/1.4.1/source.json b/modules/open62541/1.4.1/source.json new file mode 100644 index 00000000000..c2829bc9647 --- /dev/null +++ b/modules/open62541/1.4.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/open62541/open62541/archive/refs/tags/v1.4.1.tar.gz", + "integrity": "sha256-T0XzPk69UkEUKBfExhqU8rE1MwTIrfkJFWK6+rbds9o=", + "strip_prefix": "open62541-1.4.1", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-obQrjV1qTpH5kllLsMAQBrN7Yf6K56aKQlW8xGP3z2g=", + "add_build_file.patch": "sha256-A5BCQuOFUKY4Ex++SnZbKHABCzZF5wqpan9bntnPObw=" + } +} \ No newline at end of file diff --git a/modules/open62541/metadata.json b/modules/open62541/metadata.json new file mode 100644 index 00000000000..99177186678 --- /dev/null +++ b/modules/open62541/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "http://open62541.org/", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:open62541/open62541" + ], + "versions": [ + "1.4.1" + ], + "yanked_versions": {} +} From 9565d33881d127801758d5f8644dda25ea437440 Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Mon, 1 Jul 2024 16:21:52 +0000 Subject: [PATCH 02/52] fix module patch --- modules/open62541/1.4.1/BUILD.bazel | 10 ---------- modules/open62541/1.4.1/patches/module_dot_bazel.patch | 1 - modules/open62541/1.4.1/source.json | 4 ++-- 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 modules/open62541/1.4.1/BUILD.bazel diff --git a/modules/open62541/1.4.1/BUILD.bazel b/modules/open62541/1.4.1/BUILD.bazel deleted file mode 100644 index f421d34fa24..00000000000 --- a/modules/open62541/1.4.1/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -cc_library( - name = "open62541", - srcs = ["lib/libopen62541.a"], - hdrs = glob([ - "include/open62541/*.h", - "include/open62541/plugin/*.h", - ]), - strip_include_prefix = "include", - visibility = ["//visibility:public"], -) \ No newline at end of file diff --git a/modules/open62541/1.4.1/patches/module_dot_bazel.patch b/modules/open62541/1.4.1/patches/module_dot_bazel.patch index 9e633800515..0a663806ec0 100644 --- a/modules/open62541/1.4.1/patches/module_dot_bazel.patch +++ b/modules/open62541/1.4.1/patches/module_dot_bazel.patch @@ -4,5 +4,4 @@ +module( + name = "open62541", + version = "1.4.1", -+ compatibility_level = 0, +) diff --git a/modules/open62541/1.4.1/source.json b/modules/open62541/1.4.1/source.json index c2829bc9647..4c84511c8bb 100644 --- a/modules/open62541/1.4.1/source.json +++ b/modules/open62541/1.4.1/source.json @@ -4,7 +4,7 @@ "strip_prefix": "open62541-1.4.1", "patch_strip": 0, "patches": { - "module_dot_bazel.patch": "sha256-obQrjV1qTpH5kllLsMAQBrN7Yf6K56aKQlW8xGP3z2g=", + "module_dot_bazel.patch": "sha256-jXZ8ms9s0Yj7yqXziPDjIx5S5Z/15jfr5NM+zyoUUhE=", "add_build_file.patch": "sha256-A5BCQuOFUKY4Ex++SnZbKHABCzZF5wqpan9bntnPObw=" } -} \ No newline at end of file +} From 9e35a5d0f8bb3d0ff072e44a22b55781caa411fc Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Mon, 1 Jul 2024 16:24:10 +0000 Subject: [PATCH 03/52] fix module patch --- modules/open62541/1.4.1/patches/module_dot_bazel.patch | 2 +- modules/open62541/1.4.1/source.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/open62541/1.4.1/patches/module_dot_bazel.patch b/modules/open62541/1.4.1/patches/module_dot_bazel.patch index 0a663806ec0..114816fdca2 100644 --- a/modules/open62541/1.4.1/patches/module_dot_bazel.patch +++ b/modules/open62541/1.4.1/patches/module_dot_bazel.patch @@ -1,6 +1,6 @@ --- MODULE.bazel +++ MODULE.bazel -@@ -0,0 +1,5 @@ +@@ -0,0 +1,4 @@ +module( + name = "open62541", + version = "1.4.1", diff --git a/modules/open62541/1.4.1/source.json b/modules/open62541/1.4.1/source.json index 4c84511c8bb..a96111509be 100644 --- a/modules/open62541/1.4.1/source.json +++ b/modules/open62541/1.4.1/source.json @@ -4,7 +4,7 @@ "strip_prefix": "open62541-1.4.1", "patch_strip": 0, "patches": { - "module_dot_bazel.patch": "sha256-jXZ8ms9s0Yj7yqXziPDjIx5S5Z/15jfr5NM+zyoUUhE=", + "module_dot_bazel.patch": "sha256-kcn7wMZY21VCcLEk6i3HKjnkBkVL+tgXcEk+R/JAGsw=", "add_build_file.patch": "sha256-A5BCQuOFUKY4Ex++SnZbKHABCzZF5wqpan9bntnPObw=" } } From 257a056345e5d52d9f0c6febb3c1596b8deaf03f Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 13:08:47 +0000 Subject: [PATCH 04/52] rules_uv@0.17.0 (#2349) Release: https://github.com/theoremlp/rules_uv/releases/tag/v0.17.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Mark Elliot <123787712+mark-thm@users.noreply.github.com> --- modules/rules_uv/0.17.0/MODULE.bazel | 16 ++++++++++++++++ modules/rules_uv/0.17.0/presubmit.yml | 15 +++++++++++++++ modules/rules_uv/0.17.0/source.json | 5 +++++ modules/rules_uv/metadata.json | 3 ++- 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 modules/rules_uv/0.17.0/MODULE.bazel create mode 100644 modules/rules_uv/0.17.0/presubmit.yml create mode 100644 modules/rules_uv/0.17.0/source.json diff --git a/modules/rules_uv/0.17.0/MODULE.bazel b/modules/rules_uv/0.17.0/MODULE.bazel new file mode 100644 index 00000000000..4dc1aeeb0aa --- /dev/null +++ b/modules/rules_uv/0.17.0/MODULE.bazel @@ -0,0 +1,16 @@ +"rules_uv" + +module( + name = "rules_uv", + version = "0.17.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "rules_multitool", version = "0.4.0") + +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") +multitool.hub(lockfile = "//uv/private:uv.lock.json") +use_repo(multitool, "multitool") diff --git a/modules/rules_uv/0.17.0/presubmit.yml b/modules/rules_uv/0.17.0/presubmit.yml new file mode 100644 index 00000000000..3a2a60fd70a --- /dev/null +++ b/modules/rules_uv/0.17.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_uv//..." diff --git a/modules/rules_uv/0.17.0/source.json b/modules/rules_uv/0.17.0/source.json new file mode 100644 index 00000000000..62440241a5c --- /dev/null +++ b/modules/rules_uv/0.17.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-/q9niMptIqYq4/B8Z6YrbK3Q9o8fcx6ZPHg82nZk2l8=", + "strip_prefix": "rules_uv-0.17.0", + "url": "https://github.com/theoremlp/rules_uv/releases/download/v0.17.0/rules_uv-0.17.0.tar.gz" +} diff --git a/modules/rules_uv/metadata.json b/modules/rules_uv/metadata.json index 69f29e2d2f9..bde59c01337 100644 --- a/modules/rules_uv/metadata.json +++ b/modules/rules_uv/metadata.json @@ -32,7 +32,8 @@ "0.13.0", "0.14.0", "0.15.0", - "0.16.0" + "0.16.0", + "0.17.0" ], "yanked_versions": {} } From bc2d153bb5502198583c0ef76b5e3115678fb0f5 Mon Sep 17 00:00:00 2001 From: Udaya Prakash Date: Tue, 2 Jul 2024 17:37:47 +0200 Subject: [PATCH 05/52] add libzip@1.10.1 (#2348) --- modules/libzip/1.10.1/MODULE.bazel | 9 +++ .../1.10.1/patches/add-build-file.patch | 59 +++++++++++++++++++ .../1.10.1/patches/module_dot_bazel.patch | 12 ++++ modules/libzip/1.10.1/presubmit.yml | 14 +++++ modules/libzip/1.10.1/source.json | 10 ++++ modules/libzip/metadata.json | 16 +++++ 6 files changed, 120 insertions(+) create mode 100644 modules/libzip/1.10.1/MODULE.bazel create mode 100644 modules/libzip/1.10.1/patches/add-build-file.patch create mode 100644 modules/libzip/1.10.1/patches/module_dot_bazel.patch create mode 100644 modules/libzip/1.10.1/presubmit.yml create mode 100644 modules/libzip/1.10.1/source.json create mode 100644 modules/libzip/metadata.json diff --git a/modules/libzip/1.10.1/MODULE.bazel b/modules/libzip/1.10.1/MODULE.bazel new file mode 100644 index 00000000000..62c66d48e43 --- /dev/null +++ b/modules/libzip/1.10.1/MODULE.bazel @@ -0,0 +1,9 @@ +module( + name = "libzip", + version = "1.10.1", +) +bazel_dep(name = "boringssl", version = "0.0.0-20240530-2db0eb3") +bazel_dep(name = "rules_license", version = "0.0.8") +bazel_dep(name = "rules_foreign_cc", version = "0.10.1") +bazel_dep(name = "zstd", version = "1.5.6") +bazel_dep(name = "zlib", version = "1.3") diff --git a/modules/libzip/1.10.1/patches/add-build-file.patch b/modules/libzip/1.10.1/patches/add-build-file.patch new file mode 100644 index 00000000000..fc546dae043 --- /dev/null +++ b/modules/libzip/1.10.1/patches/add-build-file.patch @@ -0,0 +1,59 @@ +diff --git a/BUILD b/BUILD +new file mode 100644 +index 00000000..991cb183 +--- a/BUILD ++++ b/BUILD +@@ -0,0 +1,52 @@ ++load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") ++load("@rules_license//rules:license.bzl", "license") ++ ++package( ++ default_applicable_licenses = [":license"], ++ default_visibility = ["//visibility:public"], ++) ++ ++license( ++ name = "license", ++ package_name = "libzip", ++) ++ ++filegroup( ++ name = "all_srcs", ++ srcs = glob(["**"]), ++) ++ ++cmake( ++ name = "libzip", ++ build_args = [ ++ "-j4", ++ ], ++ cache_entries = { ++ "BUILD_SHARED_LIBS": "OFF", ++ "BUILD_DOC": "OFF", ++ "BUILD_EXAMPLES": "OFF", ++ "BUILD_OSSFUZZ": "OFF", ++ "BUILD_REGRESS": "OFF", ++ "BUILD_TOOLS": "OFF", ++ "ENABLE_BZIP2": "OFF", ++ "ENABLE_COMMONCRYPTO": "OFF", ++ "ENABLE_GNUTLS": "OFF", ++ "ENABLE_MBEDTLS": "OFF", ++ "ENABLE_WINDOWS_CRYPTO": "OFF", ++ }, ++ env = { ++ "CMAKE_BUILD_TYPE": "Release", ++ "CMAKE_BUILD_PARALLEL_LEVEL": "4", ++ }, ++ includes = [ ++ ".", ++ "lib", ++ ], ++ lib_source = ":all_srcs", ++ out_static_libs = ["libzip.a"], ++ deps = [ ++ "@boringssl//:crypto", ++ "@zstd", ++ "@zlib", ++ ], ++) +\ No newline at end of file diff --git a/modules/libzip/1.10.1/patches/module_dot_bazel.patch b/modules/libzip/1.10.1/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..2f1b3c34f9d --- /dev/null +++ b/modules/libzip/1.10.1/patches/module_dot_bazel.patch @@ -0,0 +1,12 @@ +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -0,0 +1,9 @@ ++module( ++ name = "libzip", ++ version = "1.10.1", ++) ++bazel_dep(name = "boringssl", version = "0.0.0-20240530-2db0eb3") ++bazel_dep(name = "rules_license", version = "0.0.8") ++bazel_dep(name = "rules_foreign_cc", version = "0.10.1") ++bazel_dep(name = "zstd", version = "1.5.6") ++bazel_dep(name = "zlib", version = "1.3") diff --git a/modules/libzip/1.10.1/presubmit.yml b/modules/libzip/1.10.1/presubmit.yml new file mode 100644 index 00000000000..a76fe024cd1 --- /dev/null +++ b/modules/libzip/1.10.1/presubmit.yml @@ -0,0 +1,14 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@libzip//:libzip' diff --git a/modules/libzip/1.10.1/source.json b/modules/libzip/1.10.1/source.json new file mode 100644 index 00000000000..228078fb16a --- /dev/null +++ b/modules/libzip/1.10.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/nih-at/libzip/releases/download/v1.10.1/libzip-1.10.1.tar.gz", + "integrity": "sha256-lmmuXf46xbOJdTbchGaodMjPLA47H90I11snOIQpk2M=", + "strip_prefix": "libzip-1.10.1", + "patch_strip": 1, + "patches": { + "module_dot_bazel.patch": "sha256-17DkpSXtMHEPH9zf/HAmigNfLxnx52Av5fVvyXZfwXk=", + "add-build-file.patch": "sha256-ROuSJcNks6u9rMh5Uf2IHfeKYyiCxf2qXy+0/ez6v8Y=" + } +} diff --git a/modules/libzip/metadata.json b/modules/libzip/metadata.json new file mode 100644 index 00000000000..8757b5f4161 --- /dev/null +++ b/modules/libzip/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://libzip.org/", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:nih-at/libzip" + ], + "versions": [ + "1.10.1" + ], + "yanked_versions": {} +} From b5669663f55278ff825452d85575c34e23edf69c Mon Sep 17 00:00:00 2001 From: Vertexwahn Date: Tue, 2 Jul 2024 22:27:30 +0200 Subject: [PATCH 06/52] fmt@11.0.0 (#2351) fmt@11.0.0 --- modules/fmt/11.0.0/MODULE.bazel | 8 ++++++++ modules/fmt/11.0.0/overlay/BUILD.bazel | 18 +++++++++++++++++ modules/fmt/11.0.0/overlay/MODULE.bazel | 1 + modules/fmt/11.0.0/presubmit.yml | 26 +++++++++++++++++++++++++ modules/fmt/11.0.0/source.json | 10 ++++++++++ modules/fmt/metadata.json | 5 +++-- 6 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 modules/fmt/11.0.0/MODULE.bazel create mode 100644 modules/fmt/11.0.0/overlay/BUILD.bazel create mode 120000 modules/fmt/11.0.0/overlay/MODULE.bazel create mode 100644 modules/fmt/11.0.0/presubmit.yml create mode 100644 modules/fmt/11.0.0/source.json diff --git a/modules/fmt/11.0.0/MODULE.bazel b/modules/fmt/11.0.0/MODULE.bazel new file mode 100644 index 00000000000..0105566fa54 --- /dev/null +++ b/modules/fmt/11.0.0/MODULE.bazel @@ -0,0 +1,8 @@ +module( + name = "fmt", + version = "11.0.0", + bazel_compatibility = [">=7.2.1"], + compatibility_level = 10, +) + +bazel_dep(name = "platforms", version = "0.0.10") diff --git a/modules/fmt/11.0.0/overlay/BUILD.bazel b/modules/fmt/11.0.0/overlay/BUILD.bazel new file mode 100644 index 00000000000..dba44eb267f --- /dev/null +++ b/modules/fmt/11.0.0/overlay/BUILD.bazel @@ -0,0 +1,18 @@ +cc_library( + name = "fmt", + srcs = [ + #"src/fmt.cc", # No C++ module support, yet in Bazel (https://github.com/bazelbuild/bazel/pull/19940) + "src/format.cc", + "src/os.cc", + ], + hdrs = glob([ + "include/fmt/*.h", + ]), + copts = select({ + "@platforms//os:windows": ["-utf-8"], + "//conditions:default": [], + }), + includes = ["include"], + strip_include_prefix = "include", # workaround: only needed on some macOS systems (see https://github.com/bazelbuild/bazel-central-registry/issues/1537) + visibility = ["//visibility:public"], +) diff --git a/modules/fmt/11.0.0/overlay/MODULE.bazel b/modules/fmt/11.0.0/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/fmt/11.0.0/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/fmt/11.0.0/presubmit.yml b/modules/fmt/11.0.0/presubmit.yml new file mode 100644 index 00000000000..487e9389b60 --- /dev/null +++ b/modules/fmt/11.0.0/presubmit.yml @@ -0,0 +1,26 @@ +matrix: + unix_platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + windows_test: + - windows + bazel: [7.x] +tasks: + unix_test: + name: Verify build targets + platform: ${{ unix_platform }} + bazel: ${{ bazel }} + build_targets: + - '@fmt//:fmt' + windows_test: + name: Verify build targets + platform: ${{ windows_test }} + bazel: ${{ bazel }} + build_flags: + - --cxxopt=/utf-8 + build_targets: + - '@fmt//:fmt' diff --git a/modules/fmt/11.0.0/source.json b/modules/fmt/11.0.0/source.json new file mode 100644 index 00000000000..48e20bc92ee --- /dev/null +++ b/modules/fmt/11.0.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/fmtlib/fmt/releases/download/11.0.0/fmt-11.0.0.zip", + "integrity": "sha256-WDzkgO8H+tdu+G4eKmOfwjHD2qhsSqa8ulJM6QjzBpk=", + "strip_prefix": "fmt-11.0.0", + "patch_strip": 0, + "overlay": { + "MODULE.bazel": "sha256-nQ+Bo3fOIMjmfqTweXWNHl44uwPrz/ONFi/NBevTBG4=", + "BUILD.bazel": "sha256-n/TmPiGOx6HketgmAHPAweorXhPcP7OUUBbm9g9tQTs=" + } +} diff --git a/modules/fmt/metadata.json b/modules/fmt/metadata.json index ac183483fa4..2dd63b2bb8e 100644 --- a/modules/fmt/metadata.json +++ b/modules/fmt/metadata.json @@ -18,7 +18,8 @@ "10.1.1", "10.2.0", "10.2.1", - "10.2.1.bcr.1" + "10.2.1.bcr.1", + "11.0.0" ], "yanked_versions": {} -} \ No newline at end of file +} From 1f4530df42a0ba26eda9f4ae106f27dd45285c42 Mon Sep 17 00:00:00 2001 From: Vertexwahn Date: Tue, 2 Jul 2024 22:28:44 +0200 Subject: [PATCH 07/52] glew@2.2.0 (#2352) glew@2.2.0 --- modules/glew/2.2.0/MODULE.bazel | 8 ++++++ modules/glew/2.2.0/overlay/BUILD.bazel | 35 +++++++++++++++++++++++++ modules/glew/2.2.0/overlay/MODULE.bazel | 1 + modules/glew/2.2.0/presubmit.yml | 14 ++++++++++ modules/glew/2.2.0/source.json | 10 +++++++ modules/glew/metadata.json | 17 ++++++++++++ 6 files changed, 85 insertions(+) create mode 100644 modules/glew/2.2.0/MODULE.bazel create mode 100644 modules/glew/2.2.0/overlay/BUILD.bazel create mode 120000 modules/glew/2.2.0/overlay/MODULE.bazel create mode 100644 modules/glew/2.2.0/presubmit.yml create mode 100644 modules/glew/2.2.0/source.json create mode 100644 modules/glew/metadata.json diff --git a/modules/glew/2.2.0/MODULE.bazel b/modules/glew/2.2.0/MODULE.bazel new file mode 100644 index 00000000000..18a0d38f6ec --- /dev/null +++ b/modules/glew/2.2.0/MODULE.bazel @@ -0,0 +1,8 @@ +module( + name = "glew", + version = "2.2.0", + bazel_compatibility = [">=7.2.1"], + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.10") diff --git a/modules/glew/2.2.0/overlay/BUILD.bazel b/modules/glew/2.2.0/overlay/BUILD.bazel new file mode 100644 index 00000000000..0147d063f12 --- /dev/null +++ b/modules/glew/2.2.0/overlay/BUILD.bazel @@ -0,0 +1,35 @@ +cc_library( + name = "glew_static", + srcs = ["src/glew.c"], + hdrs = [ + "include/GL/eglew.h", + "include/GL/glew.h", + "include/GL/glxew.h", + "include/GL/wglew.h", + ], + defines = ["GLEW_STATIC"], + strip_include_prefix = "include", + visibility = ["//visibility:public"], + alwayslink = False, +) + +cc_binary( + name = "glewinfo", + srcs = ["src/glewinfo.c"], + linkopts = select({ + "@platforms//os:windows": [ + "-DEFAULTLIB:opengl32.lib", + "-DEFAULTLIB:User32.lib", + "-DEFAULTLIB:Gdi32.lib", + ], + "@platforms//os:macos": [ + "-Wl,-framework,OpenGL", + ], + "//conditions:default": [ + "-lGL", + "-lX11", + ], + }), + visibility = ["//visibility:public"], + deps = [":glew_static"], +) diff --git a/modules/glew/2.2.0/overlay/MODULE.bazel b/modules/glew/2.2.0/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/glew/2.2.0/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/glew/2.2.0/presubmit.yml b/modules/glew/2.2.0/presubmit.yml new file mode 100644 index 00000000000..fbb2a0826d5 --- /dev/null +++ b/modules/glew/2.2.0/presubmit.yml @@ -0,0 +1,14 @@ +matrix: + platform: + - macos + - macos_arm64 + - windows + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@glew//...' diff --git a/modules/glew/2.2.0/source.json b/modules/glew/2.2.0/source.json new file mode 100644 index 00000000000..9a4c8d60dd2 --- /dev/null +++ b/modules/glew/2.2.0/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0.zip", + "integrity": "sha256-qQRqkTd0OVoJXtzAsKwtgcOqzKYXh7OYOblB6b4U4NQ=", + "strip_prefix": "glew-2.2.0", + "patch_strip": 0, + "overlay": { + "BUILD.bazel": "sha256-wU0iC6XppS0IcaBYtSwji1tSnke/uUbjzjeBLKGxhAM=", + "MODULE.bazel": "sha256-vEXT7JKX3BPcYPD9J0x2i3H/PH69ayVsBx8SXe0kynE=" + } +} diff --git a/modules/glew/metadata.json b/modules/glew/metadata.json new file mode 100644 index 00000000000..a5e10f5ba2c --- /dev/null +++ b/modules/glew/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "http://glew.sourceforge.net/", + "maintainers": [ + { + "email": "julian.amann@tum.de", + "github": "Vertexwahn", + "name": "Julian Amann" + } + ], + "repository": [ + "github:nigels-com/glew" + ], + "versions": [ + "2.2.0" + ], + "yanked_versions": {} +} From d24751f180a683c5b09b69577d714dd3ecabc557 Mon Sep 17 00:00:00 2001 From: Marc Redemske Date: Tue, 2 Jul 2024 23:11:16 +0200 Subject: [PATCH 08/52] Add bzlparty_tools@0.3.0 (#2325) [Project](https://github.com/bzlparty/tools) [Release](https://github.com/bzlparty/tools/releases/tag/v0.3.0) --- modules/bzlparty_tools/0.3.0/MODULE.bazel | 52 ++++++++++++++++++++++ modules/bzlparty_tools/0.3.0/presubmit.yml | 21 +++++++++ modules/bzlparty_tools/0.3.0/source.json | 5 +++ modules/bzlparty_tools/metadata.json | 3 +- 4 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 modules/bzlparty_tools/0.3.0/MODULE.bazel create mode 100644 modules/bzlparty_tools/0.3.0/presubmit.yml create mode 100644 modules/bzlparty_tools/0.3.0/source.json diff --git a/modules/bzlparty_tools/0.3.0/MODULE.bazel b/modules/bzlparty_tools/0.3.0/MODULE.bazel new file mode 100644 index 00000000000..c553199cd70 --- /dev/null +++ b/modules/bzlparty_tools/0.3.0/MODULE.bazel @@ -0,0 +1,52 @@ +module( + name = "bzlparty_tools", + version = "0.3.0", + compatibility_level = 1, +) + +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "aspect_bazel_lib", version = "2.3.0") + + +tools = use_extension("//lib:extensions.bzl", "tools") +tools.fd() +tools.goawk() +tools.jql() +tools.ripgrep() +tools.sha() +tools.shellcheck() +tools.shellspec() +tools.topiary() +tools.typos() +tools.xsv() +use_repo( + tools, + "fd", + "goawk", + "jql", + "ripgrep", + "sha", + "shellcheck", + "shellspec", + "topiary", + "typos", + "xsv", +) + +register_toolchains( + "@fd//:all", + "@goawk//:all", + "@jql//:all", + "@ripgrep//:all", + "@sha//:all", + "@shellcheck//:all", + "@shellspec//:all", + "@topiary//:all", + "@typos//:all", + "@xsv//:all", +) + +files = use_extension("//lib:extensions.bzl", "files") +files.topiary_queries() +use_repo(files, "topiary_queries") \ No newline at end of file diff --git a/modules/bzlparty_tools/0.3.0/presubmit.yml b/modules/bzlparty_tools/0.3.0/presubmit.yml new file mode 100644 index 00000000000..5747e05f91f --- /dev/null +++ b/modules/bzlparty_tools/0.3.0/presubmit.yml @@ -0,0 +1,21 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@bzlparty_tools//lib:defs.bzl' + - '@bzlparty_tools//lib:platforms.bzl' + - '@bzlparty_tools//platforms:host.bzl' + - '@bzlparty_tools//sh:tag' + - '@bzlparty_tools//sh:sha' diff --git a/modules/bzlparty_tools/0.3.0/source.json b/modules/bzlparty_tools/0.3.0/source.json new file mode 100644 index 00000000000..045d1deb577 --- /dev/null +++ b/modules/bzlparty_tools/0.3.0/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://github.com/bzlparty/tools/releases/download/v0.3.0/tools-v0.3.0.tar.gz", + "integrity": "sha256-jR7KjDkOPKVj1++v90Ouip2bZUmfDNaMsYTcxXnn68U=", + "strip_prefix": "tools-0.3.0" +} diff --git a/modules/bzlparty_tools/metadata.json b/modules/bzlparty_tools/metadata.json index a31a8aa1fa1..30b9dacfe58 100644 --- a/modules/bzlparty_tools/metadata.json +++ b/modules/bzlparty_tools/metadata.json @@ -12,7 +12,8 @@ ], "versions": [ "0.1.0", - "0.2.0" + "0.2.0", + "0.3.0" ], "yanked_versions": {} } From a77bc4ebe424b56cd55acb49b4f8b90119c64012 Mon Sep 17 00:00:00 2001 From: Vertexwahn Date: Tue, 2 Jul 2024 23:11:34 +0200 Subject: [PATCH 09/52] xtl@0.7.7 (#2353) xtl@0.7.7 --- modules/xtl/0.7.7/MODULE.bazel | 7 +++++++ modules/xtl/0.7.7/overlay/BUILD.bazel | 6 ++++++ modules/xtl/0.7.7/overlay/MODULE.bazel | 1 + modules/xtl/0.7.7/presubmit.yml | 17 +++++++++++++++++ modules/xtl/0.7.7/source.json | 10 ++++++++++ modules/xtl/metadata.json | 17 +++++++++++++++++ 6 files changed, 58 insertions(+) create mode 100644 modules/xtl/0.7.7/MODULE.bazel create mode 100644 modules/xtl/0.7.7/overlay/BUILD.bazel create mode 120000 modules/xtl/0.7.7/overlay/MODULE.bazel create mode 100644 modules/xtl/0.7.7/presubmit.yml create mode 100644 modules/xtl/0.7.7/source.json create mode 100644 modules/xtl/metadata.json diff --git a/modules/xtl/0.7.7/MODULE.bazel b/modules/xtl/0.7.7/MODULE.bazel new file mode 100644 index 00000000000..e65b09b0895 --- /dev/null +++ b/modules/xtl/0.7.7/MODULE.bazel @@ -0,0 +1,7 @@ +module( + name = "xtl", + version = "0.7.7", + bazel_compatibility = [">=7.2.1"], +) + +bazel_dep(name = "doctest", version = "2.4.11", dev_dependency = True) diff --git a/modules/xtl/0.7.7/overlay/BUILD.bazel b/modules/xtl/0.7.7/overlay/BUILD.bazel new file mode 100644 index 00000000000..02d333f5126 --- /dev/null +++ b/modules/xtl/0.7.7/overlay/BUILD.bazel @@ -0,0 +1,6 @@ +cc_library( + name = "xtl", + hdrs = glob(["include/**"]), + strip_include_prefix = "include", + visibility = ["//visibility:public"], +) diff --git a/modules/xtl/0.7.7/overlay/MODULE.bazel b/modules/xtl/0.7.7/overlay/MODULE.bazel new file mode 120000 index 00000000000..9b599e3ad9c --- /dev/null +++ b/modules/xtl/0.7.7/overlay/MODULE.bazel @@ -0,0 +1 @@ +../MODULE.bazel \ No newline at end of file diff --git a/modules/xtl/0.7.7/presubmit.yml b/modules/xtl/0.7.7/presubmit.yml new file mode 100644 index 00000000000..032e0fba031 --- /dev/null +++ b/modules/xtl/0.7.7/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - debian11 + - macos + - macos_arm64 + - ubuntu2004 + - ubuntu2204 + - windows + bazel: [7.x] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@xtl//:xtl" diff --git a/modules/xtl/0.7.7/source.json b/modules/xtl/0.7.7/source.json new file mode 100644 index 00000000000..6fa026d9d10 --- /dev/null +++ b/modules/xtl/0.7.7/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/xtensor-stack/xtl/archive/refs/tags/0.7.7.tar.gz", + "integrity": "sha256-RPuZ+/XlavXENhn8jCmqWOX60Y87pufZxVwRG2LfH7s=", + "strip_prefix": "xtl-0.7.7", + "patch_strip": 0, + "overlay": { + "BUILD.bazel": "sha256-F9cMl1E2Vrkm3tzDJ8T2/2DtqOrCBml3S8qgRZoHORQ=", + "MODULE.bazel": "sha256-6o2zqXgOqC70JvElfp/Br82pyj/31DQxxTmk27MN76g=" + } +} diff --git a/modules/xtl/metadata.json b/modules/xtl/metadata.json new file mode 100644 index 00000000000..b725df189c3 --- /dev/null +++ b/modules/xtl/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/xtensor-stack/xtl", + "maintainers": [ + { + "email": "julian.amann@tum.de", + "github": "Vertexwahn", + "name": "Julian Amann" + } + ], + "repository": [ + "github:xtensor-stack/xtl" + ], + "versions": [ + "0.7.7" + ], + "yanked_versions": {} +} From faf3c6424755b0b5e87e12b755f9cf12593272da Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:14:51 +0000 Subject: [PATCH 10/52] rules_bazel_integration_test@0.24.1 (#2356) Release: https://github.com/bazel-contrib/rules_bazel_integration_test/releases/tag/v0.24.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Chuck Grindel --- .../0.24.1/MODULE.bazel | 43 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++++ .../0.24.1/presubmit.yml | 14 ++++++ .../0.24.1/source.json | 9 ++++ .../metadata.json | 3 +- 5 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 modules/rules_bazel_integration_test/0.24.1/MODULE.bazel create mode 100644 modules/rules_bazel_integration_test/0.24.1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_bazel_integration_test/0.24.1/presubmit.yml create mode 100644 modules/rules_bazel_integration_test/0.24.1/source.json diff --git a/modules/rules_bazel_integration_test/0.24.1/MODULE.bazel b/modules/rules_bazel_integration_test/0.24.1/MODULE.bazel new file mode 100644 index 00000000000..d3ab6d56f17 --- /dev/null +++ b/modules/rules_bazel_integration_test/0.24.1/MODULE.bazel @@ -0,0 +1,43 @@ +module( + name = "rules_bazel_integration_test", + version = "0.24.1", +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "rules_python", version = "0.19.0") +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "cgrindel_bazel_starlib", version = "0.18.0") + +# not a direct dependency, but required here for bazel starlib's difftest macros to work +bazel_dep( + name = "buildifier_prebuilt", + version = "6.1.2", +) + +register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain") + +# Must keep the Bazel version listed in WORKSPACE in sync with those loaded +# below. +bazel_binaries = use_extension( + "//:extensions.bzl", + "bazel_binaries", + dev_dependency = True, +) +bazel_binaries.download(version_file = "//:.bazelversion") +bazel_binaries.download(version = "6.5.0") +bazel_binaries.local(path = "tools/fake_bazel.sh") +use_repo( + bazel_binaries, + "bazel_binaries", + "bazel_binaries_bazelisk", + "build_bazel_bazel_.bazelversion", + "build_bazel_bazel_6_5_0", + "build_bazel_bazel_local", +) + +download_sample_file = use_extension( + "//examples/env_var_with_rootpath:sample_file_extension.bzl", + "download_sample_file", + dev_dependency = True, +) +use_repo(download_sample_file, "sample_file") diff --git a/modules/rules_bazel_integration_test/0.24.1/patches/module_dot_bazel_version.patch b/modules/rules_bazel_integration_test/0.24.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..aa2d89f581f --- /dev/null +++ b/modules/rules_bazel_integration_test/0.24.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_bazel_integration_test", +- version = "0.0.0", ++ version = "0.24.1", + ) + + bazel_dep(name = "bazel_skylib", version = "1.4.1") + bazel_dep(name = "rules_python", version = "0.19.0") diff --git a/modules/rules_bazel_integration_test/0.24.1/presubmit.yml b/modules/rules_bazel_integration_test/0.24.1/presubmit.yml new file mode 100644 index 00000000000..fae448ea66a --- /dev/null +++ b/modules/rules_bazel_integration_test/0.24.1/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "" + matrix: + platform: ["macos", "ubuntu2004"] + bazel: + # This needs to exactly match the value used in .bazelversion at the root. + - 7.1.2 + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//bazel_integration_test/bzlmod/..." diff --git a/modules/rules_bazel_integration_test/0.24.1/source.json b/modules/rules_bazel_integration_test/0.24.1/source.json new file mode 100644 index 00000000000..3a4f18ca621 --- /dev/null +++ b/modules/rules_bazel_integration_test/0.24.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-eqm1Jph53YB0uHUlm0vR1zOP0oeMAa2VN+BHjeMdxyw=", + "strip_prefix": "", + "url": "https://github.com/bazel-contrib/rules_bazel_integration_test/releases/download/v0.24.1/rules_bazel_integration_test.v0.24.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-BYLEe7TjSmX/lCREyRDpX1a0XB6koyr/d5oLyRFzq+A=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_bazel_integration_test/metadata.json b/modules/rules_bazel_integration_test/metadata.json index 213c731c3e0..b66ec3a1f9b 100644 --- a/modules/rules_bazel_integration_test/metadata.json +++ b/modules/rules_bazel_integration_test/metadata.json @@ -27,7 +27,8 @@ "0.20.0", "0.21.0", "0.22.0", - "0.23.0" + "0.23.0", + "0.24.1" ], "yanked_versions": {} } From 633105da8185c25a80e9f08bad5d5a757a3c529a Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 4 Jul 2024 01:10:08 +0800 Subject: [PATCH 11/52] add wheelos_common_msgs (#2341) Added the common_msg library, which mainly uses protobuf to define the message format of the autonomous driving system. --- .../wheelos_common_msgs/0.1.2/MODULE.bazel | 11 ++++++++ .../wheelos_common_msgs/0.1.2/presubmit.yml | 27 +++++++++++++++++++ modules/wheelos_common_msgs/0.1.2/source.json | 5 ++++ modules/wheelos_common_msgs/metadata.json | 17 ++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 modules/wheelos_common_msgs/0.1.2/MODULE.bazel create mode 100644 modules/wheelos_common_msgs/0.1.2/presubmit.yml create mode 100644 modules/wheelos_common_msgs/0.1.2/source.json create mode 100644 modules/wheelos_common_msgs/metadata.json diff --git a/modules/wheelos_common_msgs/0.1.2/MODULE.bazel b/modules/wheelos_common_msgs/0.1.2/MODULE.bazel new file mode 100644 index 00000000000..53a3362725c --- /dev/null +++ b/modules/wheelos_common_msgs/0.1.2/MODULE.bazel @@ -0,0 +1,11 @@ +module( + name = "wheelos_common_msgs", + version = "0.1.2", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "rules_pkg", version = "0.10.1") +bazel_dep(name = "rules_proto", version = "6.0.0") +bazel_dep(name = "protobuf", version = "27.1", repo_name = "com_google_protobuf") diff --git a/modules/wheelos_common_msgs/0.1.2/presubmit.yml b/modules/wheelos_common_msgs/0.1.2/presubmit.yml new file mode 100644 index 00000000000..5755613afb8 --- /dev/null +++ b/modules/wheelos_common_msgs/0.1.2/presubmit.yml @@ -0,0 +1,27 @@ +matrix: + platform: + - ubuntu2204 + - ubuntu2004 + - windows + bazel: [6.x, 7.x] + +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@wheelos_common_msgs//common_msgs/basic_msgs:all' + - '@wheelos_common_msgs//common_msgs/chassis_msgs:all' + - '@wheelos_common_msgs//common_msgs/config_msgs:all' + - '@wheelos_common_msgs//common_msgs/sensor_msgs:all' + + verify_targets_macos: + name: Verify build targets on MacOS + platform: macos_arm64 + bazel: "7.x" + build_targets: + - '@wheelos_common_msgs//common_msgs/basic_msgs:all' + - '@wheelos_common_msgs//common_msgs/chassis_msgs:all' + - '@wheelos_common_msgs//common_msgs/config_msgs:all' + - '@wheelos_common_msgs//common_msgs/sensor_msgs:all' diff --git a/modules/wheelos_common_msgs/0.1.2/source.json b/modules/wheelos_common_msgs/0.1.2/source.json new file mode 100644 index 00000000000..71887f0fe11 --- /dev/null +++ b/modules/wheelos_common_msgs/0.1.2/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-FbtvVwDzulg3NcLrjcI3FaRnQs+BDDZtwQXA2yUkLxA=", + "strip_prefix": "common_msgs-0.1.2", + "url": "https://github.com/wheelos/common_msgs/releases/download/0.1.2/common_msgs-0.1.2.zip" +} diff --git a/modules/wheelos_common_msgs/metadata.json b/modules/wheelos_common_msgs/metadata.json new file mode 100644 index 00000000000..6016da9319f --- /dev/null +++ b/modules/wheelos_common_msgs/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/wheelos/common_msgs", + "maintainers": [ + { + "email": "daohu527@google.com", + "github": "daohu527", + "name": "daohu527" + } + ], + "repository": [ + "github:wheelos/common_msgs" + ], + "versions": [ + "0.1.2" + ], + "yanked_versions": {} +} From e0c7e7dc6b87b260c76acf0259d54f468547aafe Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:55:30 -0700 Subject: [PATCH 12/52] aspect_rules_js@2.0.0-rc6 (#2354) Release: https://github.com/aspect-build/rules_js/releases/tag/v2.0.0-rc6 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Jason Bedard --- .../aspect_rules_js/2.0.0-rc6/MODULE.bazel | 248 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 + .../aspect_rules_js/2.0.0-rc6/presubmit.yml | 12 + modules/aspect_rules_js/2.0.0-rc6/source.json | 9 + modules/aspect_rules_js/metadata.json | 3 +- 5 files changed, 285 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_rules_js/2.0.0-rc6/MODULE.bazel create mode 100644 modules/aspect_rules_js/2.0.0-rc6/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_rules_js/2.0.0-rc6/presubmit.yml create mode 100644 modules/aspect_rules_js/2.0.0-rc6/source.json diff --git a/modules/aspect_rules_js/2.0.0-rc6/MODULE.bazel b/modules/aspect_rules_js/2.0.0-rc6/MODULE.bazel new file mode 100644 index 00000000000..840996541b4 --- /dev/null +++ b/modules/aspect_rules_js/2.0.0-rc6/MODULE.bazel @@ -0,0 +1,248 @@ +"aspect-build/rules_js" + +module( + name = "aspect_rules_js", + version = "2.0.0-rc6", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, +) + +# Lower-bounds (minimum) versions for direct runtime dependencies. +# Do not bump these unless rules_js requires a newer version to function. +bazel_dep(name = "aspect_bazel_lib", version = "2.7.7") +bazel_dep(name = "bazel_features", version = "1.9.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.5") +bazel_dep(name = "rules_nodejs", version = "6.2.0") + +node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") +use_repo(node, "nodejs_darwin_amd64") +use_repo(node, "nodejs_darwin_arm64") +use_repo(node, "nodejs_linux_amd64") +use_repo(node, "nodejs_linux_arm64") +use_repo(node, "nodejs_linux_ppc64le") +use_repo(node, "nodejs_linux_s390x") +use_repo(node, "nodejs_windows_amd64") + +pnpm = use_extension("@aspect_rules_js//npm:extensions.bzl", "pnpm") +pnpm.pnpm( + name = "pnpm", + pnpm_version = "8.6.7", + pnpm_version_integrity = "sha512-vRIWpD/L4phf9Bk2o/O2TDR8fFoJnpYrp2TKqTIZF/qZ2/rgL3qKXzHofHgbXsinwMoSEigz28sqk3pQ+yMEQQ==", +) +use_repo(pnpm, "pnpm", "pnpm__links") + +bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib_toolchains.tar() +use_repo(bazel_lib_toolchains, "coreutils_toolchains") +use_repo(bazel_lib_toolchains, "yq_darwin_amd64") +use_repo(bazel_lib_toolchains, "yq_darwin_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_amd64") +use_repo(bazel_lib_toolchains, "yq_linux_arm64") +use_repo(bazel_lib_toolchains, "yq_linux_ppc64le") +use_repo(bazel_lib_toolchains, "yq_linux_s390x") +use_repo(bazel_lib_toolchains, "yq_windows_amd64") +use_repo(bazel_lib_toolchains, "bsd_tar_toolchains") + +####### Dev dependencies ######## + +bazel_dep(name = "aspect_rules_lint", version = "0.12.0", dev_dependency = True) +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) +bazel_dep(name = "gazelle", version = "0.36.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "rules_go", version = "0.46.0", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") + +host = use_extension( + "@aspect_bazel_lib//lib:extensions.bzl", + "host", + dev_dependency = True, +) +host.host() +use_repo(host, "aspect_bazel_lib_host") + +node_dev = use_extension( + "@rules_nodejs//nodejs:extensions.bzl", + "node", + dev_dependency = True, +) +use_repo(node_dev, "nodejs_toolchains") +use_repo(node_dev, "node20_linux_amd64") +use_repo(node_dev, "node20_darwin_arm64") +use_repo(node_dev, "node20_darwin_amd64") +use_repo(node_dev, "node20_linux_arm64") +use_repo(node_dev, "node20_linux_s390x") +use_repo(node_dev, "node20_linux_ppc64le") +use_repo(node_dev, "node20_windows_amd64") +use_repo(node_dev, "node18_linux_amd64") +use_repo(node_dev, "node18_darwin_arm64") +use_repo(node_dev, "node18_darwin_amd64") +use_repo(node_dev, "node18_linux_arm64") +use_repo(node_dev, "node18_linux_s390x") +use_repo(node_dev, "node18_linux_ppc64le") +use_repo(node_dev, "node18_windows_amd64") +use_repo(node_dev, "node16_linux_amd64") +use_repo(node_dev, "node16_darwin_arm64") +use_repo(node_dev, "node16_darwin_amd64") +use_repo(node_dev, "node16_linux_arm64") +use_repo(node_dev, "node16_linux_s390x") +use_repo(node_dev, "node16_linux_ppc64le") +use_repo(node_dev, "node16_windows_amd64") +node_dev.toolchain(node_version = "16.14.2") +node_dev.toolchain( + name = "node16", + node_version = "16.13.1", +) +node_dev.toolchain( + name = "node18", + node_version = "18.13.0", +) +node_dev.toolchain( + name = "node20", + node_version = "20.11.1", +) + +############################################ +# npm dependencies used by examples + +npm = use_extension( + "@aspect_rules_js//npm:extensions.bzl", + "npm", + dev_dependency = True, +) +npm.npm_translate_lock( + name = "npm", + bins = { + # derived from "bin" attribute in node_modules/typescript/package.json + "typescript": [ + "tsc=./bin/tsc", + "tsserver=./bin/tsserver", + ], + }, + custom_postinstalls = { + "@aspect-test/c": "echo moo > cow.txt", + "@aspect-test/c@2.0.2": "echo mooo >> cow.txt", + }, + data = [ + "//:examples/npm_deps/patches/meaning-of-life@1.0.0-pnpm.patch", + "//:package.json", + "//:pnpm-workspace.yaml", + "//examples/js_binary:package.json", + "//examples/linked_empty_node_modules:package.json", + "//examples/macro:package.json", + "//examples/npm_deps:package.json", + "//examples/npm_package/libs/lib_a:package.json", + "//examples/npm_package/packages/pkg_a:package.json", + "//examples/npm_package/packages/pkg_b:package.json", + "//examples/webpack_cli:package.json", + "//js/private/coverage/bundle:package.json", + "//js/private/image:package.json", + "//js/private/test/image:package.json", + "//js/private/test/js_run_devserver:package.json", + "//js/private/worker/src:package.json", + "//npm/private/test:package.json", + "//npm/private/test:vendored/lodash-4.17.21.tgz", + "//npm/private/test/npm_package:package.json", + "//npm/private/test/vendored/is-odd:package.json", + "//npm/private/test/vendored/semver-max:package.json", + ], + generate_bzl_library_targets = True, + lifecycle_hooks = { + # We fetch @kubernetes/client-node from source and it has a `prepare` lifecycle hook that needs to be run + # which runs the `build` package.json script: https://github.com/kubernetes-client/javascript/blob/fc681991e61c6808dd26012a2331f83671a11218/package.json#L28. + # Here we run run build so we just run `tsc` instead of `npm run build` which ends up just running `tsc`. + "@kubernetes/client-node": ["build"], + # 'install' hook fails as it assumes the following path to `node-pre-gyp`: ./node_modules/.bin/node-pre-gyp + # https://github.com/stultuss/protoc-gen-grpc-ts/blob/53d52a9d0e1fe3cbe930dec5581eca89b3dde807/package.json#L28 + "protoc-gen-grpc@2.0.3": [], + }, + lifecycle_hooks_execution_requirements = { + "*": [ + "no-sandbox", + ], + # If @kubernetes/client-node is not sandboxed, will fail with + # ``` + # src/azure_auth.ts(97,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/azure_auth.ts(98,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(93,43): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # src/gcp_auth.ts(94,34): error TS2575: No overload expects 2 arguments, but overloads do exist that expect either 1 or 4 arguments. + # ``` + # since a `jsonpath-plus@7.2.0` that is newer then the transitive dep `jsonpath-plus@0.19.0` is found outside of the sandbox that + # includes typings that don't match the 0.19.0 "any" usage. + "@kubernetes/client-node": [], + "@figma/nodegit": [ + "no-sandbox", + "requires-network", + ], + "esbuild": [ + "no-sandbox", + "requires-network", + ], + "segfault-handler": [ + "no-sandbox", + "requires-network", + ], + "puppeteer": [ + "no-sandbox", + "requires-network", + ], + }, + npmrc = "//:.npmrc", + package_visibility = { + "unused": ["//visibility:private"], + "@mycorp/pkg-a": ["//examples:__subpackages__"], + }, + pnpm_lock = "//:pnpm-lock.yaml", + public_hoist_packages = { + # Instructs the linker to hoist the ms@2.1.3 npm package to `node_modules/ms` in the `examples/npm_deps` package. + # Similar to adding `public-hoist-pattern[]=ms` in .npmrc but with control over which version to hoist and where + # to hoist it. This hoisted package can be referenced by the label `//examples/npm_deps:node_modules/ms` same as + # other direct dependencies in the `examples/npm_deps/package.json`. + "ms@2.1.3": ["examples/npm_deps"], + }, + replace_packages = { + "chalk@5.0.1": "@chalk_501//:pkg", + }, + update_pnpm_lock = True, + verify_node_modules_ignored = "//:.bazelignore", + verify_patches = "//examples/npm_deps/patches:patches", +) +use_repo( + npm, + "npm", + "npm__chalk__5.0.1__links", + "npm__fsevents__2.3.2__links", + "npm__rollup__2.70.2", + "npm__rollup__2.70.2__links", + "npm__unused__0.2.2__links", + "npm__webpack-bundle-analyzer__4.5.0__bufferutil_4.0.7", +) + +# As an example, manually import a package using explicit coordinates. +# Just a demonstration of the syntax de-sugaring. +npm.npm_import( + name = "acorn__8.4.0", + bins = {"acorn": "./bin/acorn"}, + integrity = "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==", + package = "acorn", + # Root package where to link the package store + root_package = "", + version = "8.4.0", +) +use_repo( + npm, + "acorn__8.4.0", + "acorn__8.4.0__links", +) + +# Used by formatter +go_sdk = use_extension( + "@rules_go//go:extensions.bzl", + "go_sdk", + dev_dependency = True, +) +go_sdk.download( + name = "go_sdk", + version = "1.20.3", +) +use_repo(go_sdk, "go_sdk") diff --git a/modules/aspect_rules_js/2.0.0-rc6/patches/module_dot_bazel_version.patch b/modules/aspect_rules_js/2.0.0-rc6/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..916d425982f --- /dev/null +++ b/modules/aspect_rules_js/2.0.0-rc6/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "aspect-build/rules_js" + + module( + name = "aspect_rules_js", +- version = "0.0.0", ++ version = "2.0.0-rc6", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/aspect_rules_js/2.0.0-rc6/presubmit.yml b/modules/aspect_rules_js/2.0.0-rc6/presubmit.yml new file mode 100644 index 00000000000..38cdbbbea03 --- /dev/null +++ b/modules/aspect_rules_js/2.0.0-rc6/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: 'e2e/bzlmod' + matrix: + bazel: ['7.x', '6.x'] + platform: ['debian10', 'macos', 'ubuntu2004'] + tasks: + run_tests: + name: 'Run test module' + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - '//...' diff --git a/modules/aspect_rules_js/2.0.0-rc6/source.json b/modules/aspect_rules_js/2.0.0-rc6/source.json new file mode 100644 index 00000000000..c094cdd4b67 --- /dev/null +++ b/modules/aspect_rules_js/2.0.0-rc6/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-pyOBWYbz3YssWNDqdv3g7Vbu1l3jIS33EuYx5fx9h5A=", + "strip_prefix": "rules_js-2.0.0-rc6", + "url": "https://github.com/aspect-build/rules_js/releases/download/v2.0.0-rc6/rules_js-v2.0.0-rc6.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-lLw5kGA/14QiUPzQSVT8pNoYPJ/ok2bbP9bGVWNqjcM=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_js/metadata.json b/modules/aspect_rules_js/metadata.json index 26f205e87a4..d2552418a8d 100644 --- a/modules/aspect_rules_js/metadata.json +++ b/modules/aspect_rules_js/metadata.json @@ -115,7 +115,8 @@ "2.0.0-rc2", "2.0.0-rc3", "2.0.0-rc4", - "2.0.0-rc5" + "2.0.0-rc5", + "2.0.0-rc6" ], "yanked_versions": {} } From 1e3a3c3569d7d5b23e2929ef299a9e1eb2efa430 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 10:55:50 -0700 Subject: [PATCH 13/52] rules_oci@2.0.0-beta1 (#2357) Release: https://github.com/bazel-contrib/rules_oci/releases/tag/v2.0.0-beta1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Sahin Yort --- modules/rules_oci/2.0.0-beta1/MODULE.bazel | 36 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++ modules/rules_oci/2.0.0-beta1/presubmit.yml | 21 +++++++++++ modules/rules_oci/2.0.0-beta1/source.json | 9 +++++ modules/rules_oci/metadata.json | 3 +- 5 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 modules/rules_oci/2.0.0-beta1/MODULE.bazel create mode 100644 modules/rules_oci/2.0.0-beta1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_oci/2.0.0-beta1/presubmit.yml create mode 100644 modules/rules_oci/2.0.0-beta1/source.json diff --git a/modules/rules_oci/2.0.0-beta1/MODULE.bazel b/modules/rules_oci/2.0.0-beta1/MODULE.bazel new file mode 100644 index 00000000000..e420673a0b2 --- /dev/null +++ b/modules/rules_oci/2.0.0-beta1/MODULE.bazel @@ -0,0 +1,36 @@ +"bazel-contrib/rules_oci" + +module( + name = "rules_oci", + version = "2.0.0-beta1", + compatibility_level = 1, +) + +bazel_dep(name = "aspect_bazel_lib", version = "2.7.2") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "bazel_features", version = "1.10.0") + +oci = use_extension("//oci:extensions.bzl", "oci") +oci.toolchains() +use_repo(oci, "oci_crane_toolchains", "oci_regctl_toolchains") + +register_toolchains("@oci_crane_toolchains//:all", "@oci_regctl_toolchains//:all") + +# Workaround https://github.com/aspect-build/bazel-lib/pull/832 +zstd = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +zstd.zstd() +use_repo(zstd, "zstd_toolchains") + +register_toolchains("@zstd_toolchains//:all") + +bazel_lib = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains") +bazel_lib.jq() +bazel_lib.tar() +use_repo(bazel_lib, "bsd_tar_toolchains", "jq_toolchains") + +# Dev dependencies + +bazel_dep(name = "rules_go", version = "0.46.0", dev_dependency = True, repo_name = "io_bazel_rules_go") +bazel_dep(name = "gazelle", version = "0.35.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) diff --git a/modules/rules_oci/2.0.0-beta1/patches/module_dot_bazel_version.patch b/modules/rules_oci/2.0.0-beta1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..80128847935 --- /dev/null +++ b/modules/rules_oci/2.0.0-beta1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "bazel-contrib/rules_oci" + + module( + name = "rules_oci", +- version = "0.0.0", ++ version = "2.0.0-beta1", + compatibility_level = 1, + ) + + bazel_dep(name = "aspect_bazel_lib", version = "2.7.2") diff --git a/modules/rules_oci/2.0.0-beta1/presubmit.yml b/modules/rules_oci/2.0.0-beta1/presubmit.yml new file mode 100644 index 00000000000..dedf0607fe8 --- /dev/null +++ b/modules/rules_oci/2.0.0-beta1/presubmit.yml @@ -0,0 +1,21 @@ +bcr_test_module: + module_path: "e2e/smoke" + matrix: + bazel: ["6.x", "7.x"] + # TODO(#97): add windows + platform: ["debian10", "ubuntu2004"] + tasks: + test_linux: + name: "Run test module" + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - "//..." + test_macos: + name: "Run test module" + bazel: ${{ bazel }} + platform: macos + test_targets: + - "//..." + # This test requires a docker daemon, not available on BCR CI + - "-//:test" diff --git a/modules/rules_oci/2.0.0-beta1/source.json b/modules/rules_oci/2.0.0-beta1/source.json new file mode 100644 index 00000000000..327c3f9dfc6 --- /dev/null +++ b/modules/rules_oci/2.0.0-beta1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-9w8H+dDWwnXX7H08fyNtm1UroyBejzffnBElAxz5Z8w=", + "strip_prefix": "rules_oci-2.0.0-beta1", + "url": "https://github.com/bazel-contrib/rules_oci/releases/download/v2.0.0-beta1/rules_oci-v2.0.0-beta1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-fRz+lensd7vFsdThzrcarfK9+SRl9YUNCHP14R6IT6E=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_oci/metadata.json b/modules/rules_oci/metadata.json index ca2f325dbd5..a9cfcb4f15a 100644 --- a/modules/rules_oci/metadata.json +++ b/modules/rules_oci/metadata.json @@ -48,7 +48,8 @@ "2.0.0-alpha3", "2.0.0-alpha4", "2.0.0-alpha5", - "2.0.0-beta0" + "2.0.0-beta0", + "2.0.0-beta1" ], "yanked_versions": {} } From 375085d4ed2b99e717a7b010cc7016649636ee95 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:10:26 -0700 Subject: [PATCH 14/52] rules_ios@4.8.0 (#2358) Release: https://github.com/bazel-ios/rules_ios/releases/tag/4.8.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/rules_ios/4.8.0/MODULE.bazel | 103 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++ modules/rules_ios/4.8.0/presubmit.yml | 17 +++ modules/rules_ios/4.8.0/source.json | 9 ++ modules/rules_ios/metadata.json | 3 +- 5 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 modules/rules_ios/4.8.0/MODULE.bazel create mode 100644 modules/rules_ios/4.8.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_ios/4.8.0/presubmit.yml create mode 100644 modules/rules_ios/4.8.0/source.json diff --git a/modules/rules_ios/4.8.0/MODULE.bazel b/modules/rules_ios/4.8.0/MODULE.bazel new file mode 100644 index 00000000000..ba0b92c7988 --- /dev/null +++ b/modules/rules_ios/4.8.0/MODULE.bazel @@ -0,0 +1,103 @@ +""" +Defines all the external repositories and dependencies for rules_ios. +""" + +# Defines the rules_ios bzlmod module. +# Version is updated during release to the registry. +module( + name = "rules_ios", + version = "4.8.0", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, + repo_name = "build_bazel_rules_ios", +) + +# Declare the bzlmod dependencies needed by rules_ios and users of rules_ios +bazel_dep( + name = "apple_support", + version = "1.15.1", + repo_name = "build_bazel_apple_support", +) +bazel_dep( + name = "rules_apple", + version = "3.5.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "rules_cc", + version = "0.0.6", +) +bazel_dep( + name = "rules_swift", + version = "1.18.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "bazel_skylib", + version = "1.4.2", +) + +# Declare the development dependencies needed for rules_ios development +bazel_dep( + name = "buildifier_prebuilt", + version = "6.1.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_pkg", + version = "0.9.1", + dev_dependency = True, +) +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +# Load non-bzlmod dependencies from rules_ios +non_module_deps = use_extension("//rules:module_extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "arm64-to-sim", + "com_github_yonaskolb_xcodegen", + "tart", +) + +non_module_dev_deps = use_extension( + "//rules:module_extensions.bzl", + "non_module_dev_deps", + dev_dependency = True, +) +use_repo( + non_module_dev_deps, + "com_github_apple_swiftcollections", +) + +# Configure Xcode +xcode_configure = use_extension( + "//rules:module_extensions.bzl", + "xcode_configure", + dev_dependency = True, +) +xcode_configure.configure( + remote_xcode_label = "", + xcode_locator_label = "//tools/toolchains/xcode_configure:xcode_locator.m", +) + +# Load non-bzlmod dependencies used in this repo from rules_swift +swift_non_module_deps = use_extension("@build_bazel_rules_swift//swift:extensions.bzl", "non_module_deps") +use_repo( + swift_non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", +) + +# Load non-bzlmod dependencies used in this repo from rules_apple +apple_non_module_deps = use_extension("@build_bazel_rules_apple//apple:extensions.bzl", "non_module_deps") +use_repo( + apple_non_module_deps, + "xctestrunner", +) diff --git a/modules/rules_ios/4.8.0/patches/module_dot_bazel_version.patch b/modules/rules_ios/4.8.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..bdd2c3cba6d --- /dev/null +++ b/modules/rules_ios/4.8.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -5,9 +5,9 @@ + # Defines the rules_ios bzlmod module. + # Version is updated during release to the registry. + module( + name = "rules_ios", +- version = "0", ++ version = "4.8.0", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, diff --git a/modules/rules_ios/4.8.0/presubmit.yml b/modules/rules_ios/4.8.0/presubmit.yml new file mode 100644 index 00000000000..13feb413e34 --- /dev/null +++ b/modules/rules_ios/4.8.0/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + bazel: ["6.x", "7.x"] +tasks: + verify_build_targets_bazel_6: + name: Verify Build targets on macOS with Bazel 6 + platform: macos_arm64 + bazel: 6.x + build_targets: + - "@rules_ios//rules/..." + verify_build_targets_bazel_7: + name: Verify Build targets on macOS with Bazel 7 + platform: macos_arm64 + bazel: 7.x + build_targets: + - "@rules_ios//rules/..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_ios/4.8.0/source.json b/modules/rules_ios/4.8.0/source.json new file mode 100644 index 00000000000..5e1a7f038bd --- /dev/null +++ b/modules/rules_ios/4.8.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-P979fmK3nG+ZgYdtttneKkdycS4sIbdG8hcCS5jMUUU=", + "strip_prefix": "", + "url": "https://github.com/bazel-ios/rules_ios/releases/download/4.8.0/rules_ios.4.8.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-CjvwB9f2uZzufl/kSSdcDQssxyp74/g3Ir51hCL4mZM=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ios/metadata.json b/modules/rules_ios/metadata.json index 0e931910222..143b72a2ab8 100644 --- a/modules/rules_ios/metadata.json +++ b/modules/rules_ios/metadata.json @@ -33,7 +33,8 @@ "4.5.0", "4.6.0", "4.7.0", - "4.7.1" + "4.7.1", + "4.8.0" ], "yanked_versions": {} } From 6d400ff2c1b98950dd39f006bd7e391f45dccbc9 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Thu, 4 Jul 2024 16:59:06 +0200 Subject: [PATCH 15/52] rules_foreign_cc@0.11.1 (#2359) Release: https://github.com/bazelbuild/rules_foreign_cc/releases/tag/0.11.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ --------- Co-authored-by: James Sharpe --- modules/rules_foreign_cc/0.11.1/MODULE.bazel | 45 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++ modules/rules_foreign_cc/0.11.1/presubmit.yml | 11 +++++ modules/rules_foreign_cc/0.11.1/source.json | 9 ++++ modules/rules_foreign_cc/metadata.json | 28 +++++++----- 5 files changed, 97 insertions(+), 10 deletions(-) create mode 100644 modules/rules_foreign_cc/0.11.1/MODULE.bazel create mode 100644 modules/rules_foreign_cc/0.11.1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_foreign_cc/0.11.1/presubmit.yml create mode 100644 modules/rules_foreign_cc/0.11.1/source.json diff --git a/modules/rules_foreign_cc/0.11.1/MODULE.bazel b/modules/rules_foreign_cc/0.11.1/MODULE.bazel new file mode 100644 index 00000000000..680bd52158f --- /dev/null +++ b/modules/rules_foreign_cc/0.11.1/MODULE.bazel @@ -0,0 +1,45 @@ +"bazelbuild/rules_foreign_cc" + +module( + name = "rules_foreign_cc", + version = "0.11.1", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "platforms", version = "0.0.5") +bazel_dep(name = "rules_python", version = "0.23.1") + +# Dev dependencies +bazel_dep(name = "gazelle", version = "0.34.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.5.6", dev_dependency = True, repo_name = "io_bazel_stardoc") +bazel_dep(name = "rules_cc", version = "0.0.9", dev_dependency = True) + +python = use_extension("@rules_python//python/extensions:python.bzl", "python") +python.toolchain(python_version = "3.9") +use_repo(python, "python_3_9") + +tools = use_extension("@rules_foreign_cc//foreign_cc:extensions.bzl", "tools") +use_repo( + tools, + "cmake_3.23.2_toolchains", + "cmake_src", + "gettext_runtime", + "glib_dev", + "glib_src", + "gnumake_src", + "meson_src", + "ninja_1.12.0_toolchains", + "ninja_build_src", + "pkgconfig_src", + "rules_foreign_cc_framework_toolchains", +) + +register_toolchains( + "@rules_foreign_cc_framework_toolchains//:all", + "@cmake_3.23.2_toolchains//:all", + "@ninja_1.12.0_toolchains//:all", + "@python_3_9//:all", + "@rules_foreign_cc//toolchains:all", +) diff --git a/modules/rules_foreign_cc/0.11.1/patches/module_dot_bazel_version.patch b/modules/rules_foreign_cc/0.11.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..03227c6c848 --- /dev/null +++ b/modules/rules_foreign_cc/0.11.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "bazelbuild/rules_foreign_cc" + + module( + name = "rules_foreign_cc", +- version = "0.0.0", ++ version = "0.11.1", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.3.0") diff --git a/modules/rules_foreign_cc/0.11.1/presubmit.yml b/modules/rules_foreign_cc/0.11.1/presubmit.yml new file mode 100644 index 00000000000..23ef4201ab2 --- /dev/null +++ b/modules/rules_foreign_cc/0.11.1/presubmit.yml @@ -0,0 +1,11 @@ +matrix: + platform: ["centos7", "debian10", "macos", "ubuntu2004", "windows"] + bazel: ["6.x", "7.x"] + +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_foreign_cc//toolchains/private:make_tool" diff --git a/modules/rules_foreign_cc/0.11.1/source.json b/modules/rules_foreign_cc/0.11.1/source.json new file mode 100644 index 00000000000..0d115f1f3aa --- /dev/null +++ b/modules/rules_foreign_cc/0.11.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-SzPWLPEJvMzyhrMO1xIRKcw0z09O2dihHzjZEI9AunQ=", + "strip_prefix": "rules_foreign_cc-0.11.1", + "url": "https://github.com/bazelbuild/rules_foreign_cc/releases/download/0.11.1/rules_foreign_cc-0.11.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-s2c0wbt8rD0JkCgTVu3Z6N89kFOElUETStlgjf3Pcsc=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_foreign_cc/metadata.json b/modules/rules_foreign_cc/metadata.json index 7708da627c7..f7d0390c7ea 100644 --- a/modules/rules_foreign_cc/metadata.json +++ b/modules/rules_foreign_cc/metadata.json @@ -1,12 +1,20 @@ { - "homepage": "https://bazelbuild.github.io/rules_foreign_cc", - "maintainers": [ - { - "github": "jsharpe", - "name": "James Sharpe" - } - ], - "repository": ["github:bazelbuild/rules_foreign_cc"], - "versions": ["0.8.0", "0.9.0", "0.10.1"], - "yanked_versions": {} + "homepage": "https://github.com/bazel-contrib/rules_foreign_cc", + "maintainers": [ + { + "email": "james.sharpe@zenotech.com", + "github": "jsharpe", + "name": "James Sharpe" + } + ], + "repository": [ + "github:bazelbuild/rules_foreign_cc" + ], + "versions": [ + "0.8.0", + "0.9.0", + "0.10.1", + "0.11.1" + ], + "yanked_versions": {} } From 941e81cc858c2983027bd69c0f9249a62490c4a5 Mon Sep 17 00:00:00 2001 From: Simon Stewart Date: Thu, 4 Jul 2024 18:24:33 +0100 Subject: [PATCH 16/52] Publish rules_jvm_external 6.2 (#2365) --- modules/rules_jvm_external/6.2/MODULE.bazel | 868 +++++++++++++++++++ modules/rules_jvm_external/6.2/presubmit.yml | 35 + modules/rules_jvm_external/6.2/source.json | 5 + modules/rules_jvm_external/metadata.json | 3 +- 4 files changed, 910 insertions(+), 1 deletion(-) create mode 100644 modules/rules_jvm_external/6.2/MODULE.bazel create mode 100644 modules/rules_jvm_external/6.2/presubmit.yml create mode 100644 modules/rules_jvm_external/6.2/source.json diff --git a/modules/rules_jvm_external/6.2/MODULE.bazel b/modules/rules_jvm_external/6.2/MODULE.bazel new file mode 100644 index 00000000000..8ca13490e5a --- /dev/null +++ b/modules/rules_jvm_external/6.2/MODULE.bazel @@ -0,0 +1,868 @@ +module( + name = "rules_jvm_external", + version = "6.2", + bazel_compatibility = [">=7.0.0"], +) + +bazel_dep( + name = "bazel_features", + version = "1.13.0", +) +bazel_dep( + name = "bazel_skylib", + version = "1.7.1", +) +bazel_dep( + name = "platforms", + version = "0.0.10", +) +bazel_dep( + name = "rules_java", + version = "7.4.0", +) +bazel_dep( + name = "rules_kotlin", + version = "1.9.5", +) +bazel_dep( + name = "rules_android", + version = "0.1.1", +) +bazel_dep( + name = "stardoc", + version = "0.7.0", + repo_name = "io_bazel_stardoc", +) + +# Remove this once rules_android has rolled out official Bzlmod support +remote_android_extensions = use_extension("@bazel_tools//tools/android:android_extensions.bzl", "remote_android_tools_extensions") +use_repo(remote_android_extensions, "android_gmaven_r8", "android_tools") + +maven = use_extension(":extensions.bzl", "maven") + +_MAVEN_VERSION = "3.9.8" + +_MAVEN_RESOLVER_VERSION = "1.9.20" + +# NOTE: Please keep any changes to this maven.install in sync with the +# definition in repositories.bzl +maven.install( + name = "rules_jvm_external_deps", + artifacts = [ + "com.google.auth:google-auth-library-credentials:1.23.0", + "com.google.auth:google-auth-library-oauth2-http:1.23.0", + "com.google.cloud:google-cloud-core:2.40.0", + "com.google.cloud:google-cloud-storage:2.40.1", + "com.google.code.gson:gson:2.11.0", + "com.google.googlejavaformat:google-java-format:1.22.0", + "com.google.guava:guava:33.2.1-jre", + "org.apache.maven:maven-artifact:%s" % _MAVEN_VERSION, + "org.apache.maven:maven-core:%s" % _MAVEN_VERSION, + "org.apache.maven:maven-model:%s" % _MAVEN_VERSION, + "org.apache.maven:maven-model-builder:%s" % _MAVEN_VERSION, + "org.apache.maven:maven-settings:%s" % _MAVEN_VERSION, + "org.apache.maven:maven-settings-builder:%s" % _MAVEN_VERSION, + "org.apache.maven:maven-resolver-provider:%s" % _MAVEN_VERSION, + "org.apache.maven.resolver:maven-resolver-api:%s" % _MAVEN_RESOLVER_VERSION, + "org.apache.maven.resolver:maven-resolver-impl:%s" % _MAVEN_RESOLVER_VERSION, + "org.apache.maven.resolver:maven-resolver-connector-basic:%s" % _MAVEN_RESOLVER_VERSION, + "org.apache.maven.resolver:maven-resolver-spi:%s" % _MAVEN_RESOLVER_VERSION, + "org.apache.maven.resolver:maven-resolver-transport-file:%s" % _MAVEN_RESOLVER_VERSION, + "org.apache.maven.resolver:maven-resolver-transport-http:%s" % _MAVEN_RESOLVER_VERSION, + "org.apache.maven.resolver:maven-resolver-util:%s" % _MAVEN_RESOLVER_VERSION, + "org.codehaus.plexus:plexus-cipher:2.1.0", + "org.codehaus.plexus:plexus-sec-dispatcher:2.0", + "org.codehaus.plexus:plexus-utils:3.5.1", + "org.fusesource.jansi:jansi:2.4.1", + "org.slf4j:jul-to-slf4j:2.0.12", + "org.slf4j:log4j-over-slf4j:2.0.12", + "org.slf4j:slf4j-simple:2.0.12", + "software.amazon.awssdk:s3:2.26.12", + ], + fail_if_repin_required = True, + fetch_sources = True, + lock_file = "//:rules_jvm_external_deps_install.json", + strict_visibility = True, +) +use_repo( + maven, + "rules_jvm_external_deps", + "unpinned_rules_jvm_external_deps", +) + +http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") + +_COURSIER_CLI_VERSION = "v2.1.8" + +COURSIER_CLI_HTTP_FILE_NAME = ("coursier_cli_" + _COURSIER_CLI_VERSION).replace(".", "_").replace("-", "_") + +COURSIER_CLI_GITHUB_ASSET_URL = "https://github.com/coursier/coursier/releases/download/{COURSIER_CLI_VERSION}/coursier.jar".format(COURSIER_CLI_VERSION = _COURSIER_CLI_VERSION) + +# Run 'bazel run //:mirror_coursier' to upload a copy of the jar to the Bazel mirror. +COURSIER_CLI_BAZEL_MIRROR_URL = "https://mirror.bazel.build/coursier_cli/" + COURSIER_CLI_HTTP_FILE_NAME + ".jar" + +COURSIER_CLI_SHA256 = "2b78bfdd3ef13fd1f42f158de0f029d7cbb1f4f652d51773445cf2b6f7918a87" + +http_file( + name = "coursier_cli", + sha256 = COURSIER_CLI_SHA256, + urls = [COURSIER_CLI_GITHUB_ASSET_URL], +) + +http_file( + name = "buildifier-linux-arm64", + sha256 = "c22a44eee37b8927167ee6ee67573303f4e31171e7ec3a8ea021a6a660040437", + urls = ["https://github.com/bazelbuild/buildtools/releases/download/v7.1.2/buildifier-linux-arm64"], +) + +http_file( + name = "buildifier-linux-x86_64", + sha256 = "28285fe7e39ed23dc1a3a525dfcdccbc96c0034ff1d4277905d2672a71b38f13", + urls = ["https://github.com/bazelbuild/buildtools/releases/download/v7.1.2/buildifier-linux-amd64"], +) + +http_file( + name = "buildifier-macos-arm64", + sha256 = "d0909b645496608fd6dfc67f95d9d3b01d90736d7b8c8ec41e802cb0b7ceae7c", + urls = ["https://github.com/bazelbuild/buildtools/releases/download/v7.1.2/buildifier-darwin-arm64"], +) + +http_file( + name = "buildifier-macos-x86_64", + sha256 = "687c49c318fb655970cf716eed3c7bfc9caeea4f2931a2fd36593c458de0c537", + urls = ["https://github.com/bazelbuild/buildtools/releases/download/v7.1.2/buildifier-darwin-amd64"], +) + +############# Dev dependencies below here + +bazel_dep( + name = "protobuf", + # Note: we use 27.2 in MODULE.bazel to avoid the warning: + # The maven repository 'maven' is used in two different bazel modules, originally in 'rules_jvm_external' and now in 'protobuf' + # But we use 21.7 in WORKSPACE because protobuf 27.2 doesn't work with Bazel 5.x + # https://github.com/protocolbuffers/protobuf/commit/a80daa2a2caaaac9ebe9ae6bb1b639c2771c5c55 + # This should be ok because we only use the protobuf dep to pull in the google/protobuf/wrappers.proto for testing + version = "27.2", + dev_dependency = True, +) +bazel_dep( + name = "bzlmod_lock_files", + version = "0.0.0", + dev_dependency = True, +) +local_path_override( + module_name = "bzlmod_lock_files", + path = "tests/integration/bzlmod_lock_files", +) + +dev_maven = use_extension( + ":extensions.bzl", + "maven", + dev_dependency = True, +) +dev_maven.install( + artifacts = [ + "com.google.guava:guava:31.1-jre", + "org.hamcrest:hamcrest-core:2.1", + ], + lock_file = "@rules_jvm_external//:maven_install.json", + resolver = "coursier", +) +dev_maven.install( + name = "duplicate_version_warning", + artifacts = [ + "com.fasterxml.jackson.core:jackson-annotations:2.10.1", + "com.fasterxml.jackson.core:jackson-annotations:2.12.1", + "com.fasterxml.jackson.core:jackson-annotations:2.10.1", + "com.fasterxml.jackson.core:jackson-annotations:2.11.2", + "com.github.jnr:jffi:1.3.4", + ], + repositories = [ + "https://repo1.maven.org/maven2", + "https://maven.google.com", + ], +) +dev_maven.artifact( + name = "duplicate_version_warning", + artifact = "jffi", + classifier = "native", + group = "com.github.jnr", + version = "1.3.3", +) +dev_maven.artifact( + name = "duplicate_version_warning", + artifact = "jffi", + classifier = "native", + group = "com.github.jnr", + version = "1.3.2", +) +dev_maven.install( + name = "duplicate_version_warning_same_version", + artifacts = [ + "com.fasterxml.jackson.core:jackson-annotations:2.10.1", + "com.fasterxml.jackson.core:jackson-annotations:2.10.1", + ], + repositories = [ + "https://repo1.maven.org/maven2", + "https://maven.google.com", + ], +) +dev_maven.artifact( + name = "duplicate_version_warning_same_version", + artifact = "jffi", + classifier = "native", + group = "com.github.jnr", + version = "1.3.3", +) +dev_maven.artifact( + name = "duplicate_version_warning_same_version", + artifact = "jffi", + classifier = "native", + group = "com.github.jnr", + version = "1.3.3", +) +dev_maven.artifact( + name = "exclusion_testing", + artifact = "guava", + exclusions = [ + "com.google.j2objc:j2objc-annotations", + "org.codehaus.mojo:animal-sniffer-annotations", + ], + group = "com.google.guava", + version = "27.0-jre", +) +dev_maven.install( + name = "forcing_versions", + artifacts = [ + # And something that depends on a more recent version of guava + "xyz.rogfam:littleproxy:2.1.0", + ], +) + +# Specify an ancient version of guava, and force its use. If we try to use `[23.3-jre]` as the version, +# the resolution will fail when using `coursier` +dev_maven.artifact( + name = "forcing_versions", + artifact = "guava", + force_version = True, + group = "com.google.guava", + version = "23.3-jre", +) +dev_maven.install( + name = "global_exclusion_testing", + artifacts = [ + "com.google.guava:guava:27.0-jre", # depends on animal-sniffer-annotations and j2objc-annotations + "com.squareup.okhttp3:okhttp:3.14.1", # depends on animal-sniffer-annotations + "com.diffplug.durian:durian-core:1.2.0", # depends on animal-sniffer-annotations and j2objc-annotations + ], + excluded_artifacts = [ + "com.google.j2objc:j2objc-annotations", + "org.codehaus.mojo:animal-sniffer-annotations", + ], +) +dev_maven.install( + name = "java_export_exclusion_testing", + artifacts = [ + "com.google.protobuf:protobuf-java:3.23.1", + ], + lock_file = "//tests/custom_maven_install:java_export_exclusion_testing_install.json", +) + +# https://github.com/bazelbuild/rules_jvm_external/issues/351 +dev_maven.install( + name = "json_artifacts_testing", + artifacts = [ + "org.json:json:20190722", + "io.quarkus:quarkus-maven-plugin:1.0.1.Final", + "io.quarkus:quarkus-bom-descriptor-json:1.0.1.Final", + ], + fetch_sources = True, + lock_file = "//tests/custom_maven_install:json_artifacts_testing_install.json", + repositories = [ + "https://repo.maven.apache.org/maven2/", + "https://repo.spring.io/plugins-release/", + ], +) + +[dev_maven.artifact( + name = "service_indexing_testing", + testonly = True, # must be propagated to the generated plugin + artifact = artifact, + group = "org.openjdk.jmh", + version = "1.37", +) for artifact in ("jmh-core", "jmh-generator-annprocess")] + +dev_maven.install( + name = "service_indexing_testing", + artifacts = [ + "com.google.auto.value:auto-value:1.10.4", + "com.google.auto.value:auto-value-annotations:1.10.4", + "org.projectlombok:lombok:1.18.22", + ], + lock_file = "//tests/custom_maven_install:service_indexing_testing.json", +) +dev_maven.install( + name = "jvm_import_test", + artifacts = [ + "com.google.code.findbugs:jsr305:3.0.2", + ], +) +dev_maven.install( + name = "m2local_testing", + artifacts = [ + # this is a test jar built for integration + # tests in this repo + "com.example:kt:1.0.0", + ], + fail_on_missing_checksum = True, + repositories = [ + "m2Local", + "https://repo1.maven.org/maven2", + ], +) +dev_maven.install( + name = "m2local_testing_ignore_empty_files", + artifacts = [ + # this is a test jar built for integration + # tests in this repo + "com.example:kt:1.0.0", + ], + fetch_sources = True, + ignore_empty_files = True, + repositories = [ + "m2Local", + "https://repo1.maven.org/maven2", + ], +) +dev_maven.install( + name = "m2local_testing_ignore_empty_files_repin", + artifacts = [ + # this is a test jar built for integration + # tests in this repo + "com.example:kt:1.0.0", + ], + fetch_sources = True, + ignore_empty_files = True, + lock_file = "//tests/custom_maven_install:m2local_testing_ignore_empty_files_with_pinned_file_install.json", + repositories = [ + "m2Local", + "https://repo1.maven.org/maven2", + ], +) +dev_maven.install( + name = "m2local_testing_repin", + artifacts = [ + # this is a test jar built for integration + # tests in this repo + "com.example:no-docs:1.0.0", + ], + lock_file = "//tests/custom_maven_install:m2local_testing_with_pinned_file_install.json", + repositories = [ + "m2Local", + "https://repo1.maven.org/maven2", + ], +) +dev_maven.install( + name = "m2local_testing_without_checksum", + artifacts = [ + # this is a test jar built for integration + # tests in this repo + "com.example:kt:1.0.0", + ], + # jar won't have checksums for this test case + fail_on_missing_checksum = False, + repositories = [ + "m2Local", + "https://repo1.maven.org/maven2", + ], +) +dev_maven.install( + name = "artifact_with_plus", + artifacts = [ + "ch.epfl.scala:compiler-interface:1.3.0-M4+47-d881fa2f", + ], + repositories = [ + "https://repo1.maven.org/maven2", + ], +) +dev_maven.install( + name = "artifact_with_plus_repin", + artifacts = [ + "ch.epfl.scala:compiler-interface:1.3.0-M4+47-d881fa2f", + ], + lock_file = "//tests/custom_maven_install:artifact_with_plus_repin_install.json", + repositories = [ + "https://repo1.maven.org/maven2", + ], +) +dev_maven.install( + name = "manifest_stamp_testing", + artifacts = [ + "com.google.guava:guava:27.0-jre", + "javax.inject:javax.inject:1", + "org.apache.beam:beam-sdks-java-core:2.15.0", + "org.bouncycastle:bcprov-jdk15on:1.64", + ], + lock_file = "//tests/custom_maven_install:manifest_stamp_testing_install.json", +) +dev_maven.install( + name = "maven_install_in_custom_location", + artifacts = ["com.google.guava:guava:27.0-jre"], + lock_file = "//tests/custom_maven_install:maven_install.json", +) +dev_maven.install( + # This name matches the one in `tests/integration/bzlmod_lock_files` + name = "multiple_lock_files", + artifacts = ["org.zeromq:jeromq:0.5.4"], + lock_file = "//tests/custom_maven_install:multiple_lock_files_install.json", +) +dev_maven.install( + name = "maven_resolved_with_boms", + # Before adding a dependency here, add a reduced test case to `ResolverTestBase` + # so that we have a clearer understanding of _why_ this dependency is here, and + # what we did to fix the problem. + artifacts = [ + # A transitive dependency pulls in a `managedDependencies` section which sets the + # `xmlpull` version to 1.2.0, which hasn't been publicly released. Maven and Gradle + # both handle this situation gracefully and correctly resolve to `xmlpull` 1.1.3.1 + "org.drools:drools-mvel:7.53.0.Final", + "org.optaplanner:optaplanner-core:7.53.0.Final", + "org.seleniumhq.selenium:selenium-java", + ], + boms = [ + "org.seleniumhq.selenium:selenium-bom:4.14.1", + ], + fail_if_repin_required = True, + lock_file = "@rules_jvm_external//tests/custom_maven_install:maven_resolved_install.json", + repositories = [ + "https://repo.spring.io/plugins-release/", # Requires auth, but we don't have it + "https://repo1.maven.org/maven2", + ], + resolver = "maven", +) +dev_maven.artifact( + name = "maven_resolved_with_boms", + testonly = True, + artifact = "auto-value-annotations", + exclusions = [ + "org.slf4j:slf4j-api", + ], + group = "com.google.auto.value", + version = "1.6.3", +) +dev_maven.artifact( + name = "maven_resolved_with_boms", + artifact = "json-lib", + classifier = "jdk15", + group = "net.sf.json-lib", + version = "2.4", +) +dev_maven.install( + name = "override_target_in_deps", + artifacts = [ + "io.opentelemetry:opentelemetry-sdk:1.28.0", + "redis.clients:jedis:5.0.2", + ], + lock_file = "@rules_jvm_external//tests/custom_maven_install:override_target_in_deps_install.json", +) +dev_maven.override( + name = "override_target_in_deps", + coordinates = "io.opentelemetry:opentelemetry-api", + target = "@//tests/integration/override_targets:additional_deps", +) +dev_maven.install( + name = "policy_pinned_testing", + artifacts = [ + # https://github.com/bazelbuild/rules_jvm_external/issues/107 + "com.google.cloud:google-cloud-storage:1.66.0", + "com.google.guava:guava:25.0-android", + ], + lock_file = "//tests/custom_maven_install:policy_pinned_testing_install.json", + version_conflict_policy = "pinned", +) + +# These artifacts helped discover limitations in the Coursier resolver. Each +# artifact listed here *must have* an accompanying issue. We build_test these +# targets to ensure that they remain supported by the rule. +dev_maven.install( + name = "regression_testing_coursier", + artifacts = [ + # https://github.com/bazelbuild/rules_jvm_external/issues/74 + "org.pantsbuild:jarjar:1.6.6", + # https://github.com/bazelbuild/rules_jvm_external/issues/59 + "junit:junit:4.12", + "org.jetbrains.kotlin:kotlin-test:1.3.21", + # https://github.com/bazelbuild/rules_jvm_external/issues/101 + # As referenced in the issue, daml is not available anymore, hence + # replacing with another artifact with a classifier. + "org.eclipse.jetty:jetty-http:jar:tests:9.4.20.v20190813", + # https://github.com/bazelbuild/rules_jvm_external/issues/116 + "org.eclipse.jetty.orbit:javax.servlet:3.0.0.v201112011016", + # https://github.com/bazelbuild/rules_jvm_external/issues/98 + "com.github.fommil.netlib:all:1.1.2", + "nz.ac.waikato.cms.weka:weka-stable:3.8.1", + # https://github.com/bazelbuild/rules_jvm_external/issues/111 + "com.android.support:appcompat-v7:aar:28.0.0", + "com.google.android.gms:play-services-base:16.1.0", + # https://github.com/bazelbuild/rules_jvm_external/issues/119#issuecomment-484278260 + "org.apache.flink:flink-test-utils_2.12:1.8.0", + # https://github.com/bazelbuild/rules_jvm_external/issues/170 + "ch.epfl.scala:compiler-interface:1.3.0-M4+20-c8a2f9bd", + # https://github.com/bazelbuild/rules_jvm_external/issues/172 + "org.openjfx:javafx-base:11.0.1", + # https://github.com/bazelbuild/rules_jvm_external/issues/178 + "io.kubernetes:client-java:4.0.0-beta1", + # https://github.com/bazelbuild/rules_jvm_external/issues/199 + "com.google.ar.sceneform.ux:sceneform-ux:1.10.0", + # https://github.com/bazelbuild/rules_jvm_external/issues/119#issuecomment-504704752 + "com.github.oshi:oshi-parent:3.4.0", + "com.github.spinalhdl:spinalhdl-core_2.11:1.3.6", + "com.github.spinalhdl:spinalhdl-lib_2.11:1.3.6", + # https://github.com/bazelbuild/rules_jvm_external/issues/201 + "org.apache.kafka:kafka_2.11:2.1.1", + "io.confluent:kafka-avro-serializer:5.0.1", + # https://github.com/bazelbuild/rules_jvm_external/issues/309 + "io.quarkus.http:quarkus-http-servlet:3.0.0.Beta1", + # https://github.com/bazelbuild/rules_jvm_external/issues/371 + "com.fasterxml.jackson:jackson-bom:2.9.10", + "org.junit:junit-bom:5.3.1", + # https://github.com/bazelbuild/rules_jvm_external/issues/686 + "io.netty:netty-tcnative-boringssl-static:2.0.51.Final", + # https://github.com/bazelbuild/rules_jvm_external/issues/907 + # Any two platforms to ensure that it doesn't work _only_ under the host operating system + "com.google.protobuf:protoc:exe:linux-x86_64:3.21.12", + "com.google.protobuf:protoc:exe:osx-aarch_64:3.21.12", + # https://github.com/bazelbuild/rules_jvm_external/issues/917 + # androidx core-testing POM has "exclusion" for "byte-buddy" but it should be downloaded as mockito-core + # dependency when the usually omitted "jar" packaging type is specified. + "org.mockito:mockito-core:jar:3.3.3", + "androidx.arch.core:core-testing:aar:2.1.0", + # https://github.com/bazelbuild/rules_jvm_external/issues/1028 + "build.buf:protovalidate:0.1.9", + ], + fail_if_repin_required = True, + generate_compat_repositories = True, + lock_file = "//tests/custom_maven_install:regression_testing_coursier_install.json", + repositories = [ + "https://repo1.maven.org/maven2", + "https://maven.google.com", + "https://packages.confluent.io/maven/", + ], +) +dev_maven.override( + name = "regression_testing_coursier", + coordinates = "com.google.ar.sceneform:rendering", + target = "@//tests/integration/override_targets:sceneform_rendering", +) + +# https://github.com/bazelbuild/rules_jvm_external/issues/92#issuecomment-478430167 +dev_maven.artifact( + name = "regression_testing_coursier", + artifact = "javapoet", + group = "com.squareup", + neverlink = True, + version = "1.11.1", +) + +# https://github.com/bazelbuild/rules_jvm_external/issues/852 +dev_maven.artifact( + name = "regression_testing_coursier", + artifact = "jaxb-ri", + exclusions = [ + "com.sun.xml.bind:jaxb-samples", + "com.sun.xml.bind:jaxb-release-documentation", + ], + group = "com.sun.xml.bind", + version = "2.3.6", +) + +# https://github.com/bazelbuild/rules_jvm_external/issues/865 +dev_maven.artifact( + name = "regression_testing_coursier", + artifact = "google-api-services-compute", + classifier = "javadoc", + group = "com.google.apis", + version = "v1-rev235-1.25.0", +) + +# These artifacts helped discover limitations in the Maven resolver. Each +# artifact listed here *must have* an accompanying issue. We build_test these +# targets to ensure that they remain supported by the rule. +dev_maven.install( + name = "regression_testing_maven", + artifacts = [ + # Depends on org.apache.yetus:audience-annotations:0.11.0 which has an invalid pom + "org.apache.parquet:parquet-common:1.11.1", + # https://github.com/bazelbuild/rules_jvm_external/issues/1144 + "org.codehaus.plexus:plexus:1.0.4", + "org.hamcrest:hamcrest-core:1.3", + # https://github.com/bazelbuild/rules_jvm_external/issues/1162 + "io.opentelemetry:opentelemetry-sdk", + ], + boms = [ + "io.opentelemetry:opentelemetry-bom:1.31.0", + ], + fail_if_repin_required = True, + generate_compat_repositories = True, + lock_file = "//tests/custom_maven_install:regression_testing_maven_install.json", + repin_instructions = "Please run `REPIN=1 bazel run @regression_testing_maven//:pin` to refresh the lock file.", + repositories = [ + "https://repo1.maven.org/maven2", + "https://maven.google.com", + ], + resolver = "maven", +) + +# https://github.com/bazelbuild/rules_jvm_external/issues/1162 +dev_maven.artifact( + name = "regression_testing_maven", + artifact = "opentelemetry-api", + group = "io.opentelemetry", + neverlink = True, +) +dev_maven.install( + name = "starlark_aar_import_test", + # Not actually necessary since this is the default value, but useful for + # testing. + aar_import_bzl_label = "@rules_android//android:rules.bzl", + artifacts = [ + "com.android.support:appcompat-v7:28.0.0", + ], + fetch_sources = False, + repositories = [ + "https://repo1.maven.org/maven2", + "https://maven.google.com", + ], + use_starlark_android_rules = True, +) +dev_maven.install( + name = "starlark_aar_import_with_sources_test", + # Not actually necessary since this is the default value, but useful for + # testing. + aar_import_bzl_label = "@rules_android//android:rules.bzl", + artifacts = [ + "androidx.work:work-runtime:2.6.0", + ], + fetch_sources = True, + repositories = [ + "https://repo1.maven.org/maven2", + "https://maven.google.com", + ], + use_starlark_android_rules = True, +) +dev_maven.install( + name = "strict_visibility_testing", + artifacts = [ + # https://github.com/bazelbuild/rules_jvm_external/issues/94 + "org.apache.tomcat:tomcat-catalina:9.0.24", + ], + strict_visibility = True, +) + +# https://github.com/bazelbuild/rules_jvm_external/issues/255 +dev_maven.artifact( + name = "strict_visibility_testing", + artifact = "jetty-http", + classifier = "tests", + group = "org.eclipse.jetty", + version = "9.4.20.v20190813", +) +dev_maven.install( + name = "strict_visibility_with_compat_testing", + artifacts = [ + # Must not be in any other maven_install where generate_compat_repositories = True + "com.google.http-client:google-http-client-gson:1.42.3", + ], + generate_compat_repositories = True, + strict_visibility = True, +) +dev_maven.artifact( + name = "testonly_testing", + artifact = "guava", + group = "com.google.guava", + version = "27.0-jre", +) +dev_maven.artifact( + name = "testonly_testing", + testonly = True, + artifact = "auto-value-annotations", + group = "com.google.auto.value", + version = "1.6.3", +) + +# https://github.com/bazelbuild/rules_jvm_external/issues/433 +dev_maven.install( + name = "version_interval_testing", + artifacts = [ + "io.grpc:grpc-netty-shaded:1.29.0", + ], +) +dev_maven.install( + name = "v1_lock_file_format", + artifacts = [ + # Coordinates that are in no other `maven_install` + "org.seleniumhq.selenium:selenium-remote-driver:4.8.0", + ], + generate_compat_repositories = True, + lock_file = "//tests/custom_maven_install:v1_lock_file_format_install.json", +) + +# Where there are file locks, the pinned and unpinned repos are listed +# next to each other. Where compat repositories are created, they are +# listed next to the repo that created them. The list is otherwise kept +# in alphabetical order. We use comments to space out the entries and to +# prevent `buildifier` from over-zealously sorting things more than we +# want it to +use_repo( + dev_maven, + "duplicate_version_warning", + "duplicate_version_warning_same_version", + "exclusion_testing", + "forcing_versions", + "global_exclusion_testing", + "m2local_testing", + "m2local_testing_ignore_empty_files", + + # Pinned repo + "m2local_testing_ignore_empty_files_repin", + "unpinned_m2local_testing_ignore_empty_files_repin", + + # Pinned repo + "java_export_exclusion_testing", + "unpinned_java_export_exclusion_testing", + + # Pinned repo + "json_artifacts_testing", + "unpinned_json_artifacts_testing", + + # Pinned repo + "service_indexing_testing", + "unpinned_service_indexing_testing", + + # Unpinned repo + "jvm_import_test", + "manifest_stamp_testing", + "unpinned_manifest_stamp_testing", + + # Pinned repo + "artifact_with_plus", + "artifact_with_plus_repin", + "m2local_testing_repin", + "m2local_testing_without_checksum", + "unpinned_artifact_with_plus_repin", + "unpinned_m2local_testing_repin", + + # Pinned repo + "maven", + "unpinned_maven", + + # Pinned repo + "maven_install_in_custom_location", + "unpinned_maven_install_in_custom_location", + + # Unpinned repo + "multiple_lock_files", + + # Pinned repo + "maven_resolved_with_boms", + + # Pinned repo + "override_target_in_deps", + "unpinned_override_target_in_deps", + + # Pinned repo + "policy_pinned_testing", + "unpinned_policy_pinned_testing", + + # Regression testing and libraries exposed as compat repos + "com_android_support_appcompat_v7_aar_28_0_0", + "com_google_guava_guava_27_0_jre", + "nz_ac_waikato_cms_weka_weka_stable", + "org_apache_flink_flink_test_utils_2_12", + "org_eclipse_jetty_jetty_http_tests", + "org_pantsbuild_jarjar", + "regression_testing_coursier", + "regression_testing_maven", + "unpinned_regression_testing_coursier", + "unpinned_regression_testing_maven", + + # Back to the testing repos + "starlark_aar_import_test", + "starlark_aar_import_with_sources_test", + "strict_visibility_testing", + + # Repo with compat repos + "com_google_http_client_google_http_client_gson", + "strict_visibility_with_compat_testing", + + # Final entries + "com_google_http_client_google_http_client", + "testonly_testing", + "unpinned_v1_lock_file_format", + "v1_lock_file_format", + "version_interval_testing", +) + +http_file( + name = "com.google.ar.sceneform_rendering", + downloaded_file_path = "rendering-1.10.0.aar", + sha256 = "d2f6cd1d54eee0d5557518d1edcf77a3ba37494ae94f9bb862e570ee426a3431", + urls = [ + "https://dl.google.com/android/maven2/com/google/ar/sceneform/rendering/1.10.0/rendering-1.10.0.aar", + ], +) + +http_file( + name = "hamcrest_core_for_test", + downloaded_file_path = "hamcrest-core-1.3.jar", + sha256 = "66fdef91e9739348df7a096aa384a5685f4e875584cce89386a7a47251c4d8e9", + urls = [ + "https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar", + ], +) + +http_file( + name = "hamcrest_core_srcs_for_test", + downloaded_file_path = "hamcrest-core-1.3-sources.jar", + sha256 = "e223d2d8fbafd66057a8848cc94222d63c3cedd652cc48eddc0ab5c39c0f84df", + urls = [ + "https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar", + ], +) + +http_file( + name = "gson_for_test", + downloaded_file_path = "gson-2.9.0.jar", + sha256 = "c96d60551331a196dac54b745aa642cd078ef89b6f267146b705f2c2cbef052d", + urls = [ + "https://repo1.maven.org/maven2/com/google/code/gson/gson/2.9.0/gson-2.9.0.jar", + ], +) + +http_file( + name = "junit_platform_commons_for_test", + downloaded_file_path = "junit-platform-commons-1.8.2.jar", + sha256 = "d2e015fca7130e79af2f4608dc54415e4b10b592d77333decb4b1a274c185050", + urls = [ + "https://repo1.maven.org/maven2/org/junit/platform/junit-platform-commons/1.8.2/junit-platform-commons-1.8.2.jar", + ], +) + +# https://github.com/bazelbuild/rules_jvm_external/issues/865 +http_file( + name = "google_api_services_compute_javadoc_for_test", + downloaded_file_path = "google-api-services-compute-v1-rev235-1.25.0-javadoc.jar", + sha256 = "b03be5ee8effba3bfbaae53891a9c01d70e2e3bd82ad8889d78e641b22bd76c2", + urls = [ + "https://repo1.maven.org/maven2/com/google/apis/google-api-services-compute/v1-rev235-1.25.0/google-api-services-compute-v1-rev235-1.25.0-javadoc.jar", + ], +) + +http_file( + name = "lombok_for_test", + downloaded_file_path = "lombok-1.18.22.jar", + sha256 = "ecef1581411d7a82cc04281667ee0bac5d7c0a5aae74cfc38430396c91c31831", + urls = [ + "https://repo1.maven.org/maven2/org/projectlombok/lombok/1.18.22/lombok-1.18.22.jar", + ], +) diff --git a/modules/rules_jvm_external/6.2/presubmit.yml b/modules/rules_jvm_external/6.2/presubmit.yml new file mode 100644 index 00000000000..8c5fa9e4b34 --- /dev/null +++ b/modules/rules_jvm_external/6.2/presubmit.yml @@ -0,0 +1,35 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_jvm_external//:implementation' + - '@rules_jvm_external//private/tools/java/...' +bcr_test_module: + module_path: examples/bzlmod + matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - //java/src/com/github/rules_jvm_external/examples/bzlmod:bzlmod_example diff --git a/modules/rules_jvm_external/6.2/source.json b/modules/rules_jvm_external/6.2/source.json new file mode 100644 index 00000000000..ffcc3551acd --- /dev/null +++ b/modules/rules_jvm_external/6.2/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://github.com/bazelbuild/rules_jvm_external/releases/download/6.2/rules_jvm_external-6.2.tar.gz", + "integrity": "sha256-gIy1wwtfcNEqKnRaKe3EZyj9NfoZXBdipZa2OunOvgU=", + "strip_prefix": "rules_jvm_external-6.2" +} diff --git a/modules/rules_jvm_external/metadata.json b/modules/rules_jvm_external/metadata.json index d7792076309..59770fd036d 100644 --- a/modules/rules_jvm_external/metadata.json +++ b/modules/rules_jvm_external/metadata.json @@ -27,7 +27,8 @@ "5.2", "5.3", "6.0", - "6.1" + "6.1", + "6.2" ], "yanked_versions": {} } From a7c42e8680c9227260e3cf12e58a92de9a56f34d Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Fri, 5 Jul 2024 12:58:03 +0200 Subject: [PATCH 17/52] feat: add ofiuco@0.3.7 and freeze rules_poetry at v0.3.6 (#2367) --- modules/ofiuco/0.3.7/MODULE.bazel | 16 ++++++++++ .../patches/module_dot_bazel_version.patch | 13 ++++++++ modules/ofiuco/0.3.7/presubmit.yml | 32 +++++++++++++++++++ modules/ofiuco/0.3.7/source.json | 9 ++++++ modules/ofiuco/metadata.json | 17 ++++++++++ 5 files changed, 87 insertions(+) create mode 100644 modules/ofiuco/0.3.7/MODULE.bazel create mode 100644 modules/ofiuco/0.3.7/patches/module_dot_bazel_version.patch create mode 100644 modules/ofiuco/0.3.7/presubmit.yml create mode 100644 modules/ofiuco/0.3.7/source.json create mode 100644 modules/ofiuco/metadata.json diff --git a/modules/ofiuco/0.3.7/MODULE.bazel b/modules/ofiuco/0.3.7/MODULE.bazel new file mode 100644 index 00000000000..93f3853a600 --- /dev/null +++ b/modules/ofiuco/0.3.7/MODULE.bazel @@ -0,0 +1,16 @@ +module( + name = "ofiuco", + version = "0.3.7", + bazel_compatibility = [">=7.0.0"], + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "platforms", version = "0.0.10") +bazel_dep(name = "rules_python", version = "0.33.2") + +python = use_extension("@rules_python//python/extensions:python.bzl", "python") +use_repo(python, "python_3_11_host") + +internal_deps = use_extension("@ofiuco//python:internal_deps.bzl", "internal_deps") +use_repo(internal_deps, "ofiuco_defs", "ofiuco_pip", "ofiuco_poetry_deps") diff --git a/modules/ofiuco/0.3.7/patches/module_dot_bazel_version.patch b/modules/ofiuco/0.3.7/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..00779d0d5bd --- /dev/null +++ b/modules/ofiuco/0.3.7/patches/module_dot_bazel_version.patch @@ -0,0 +1,13 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,6 +1,6 @@ + module( + name = "ofiuco", +- version = "0", ++ version = "0.3.7", + bazel_compatibility = [">=7.0.0"], + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.7.1") diff --git a/modules/ofiuco/0.3.7/presubmit.yml b/modules/ofiuco/0.3.7/presubmit.yml new file mode 100644 index 00000000000..a11a74d699d --- /dev/null +++ b/modules/ofiuco/0.3.7/presubmit.yml @@ -0,0 +1,32 @@ +matrix: + platform: + - centos7 + - debian10 + - ubuntu2004 + - macos + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@ofiuco//python/...' + - '@ofiuco//lib/...' +bcr_test_module: + module_path: "examples/transitions" + matrix: + platform: + - debian11 + - macos + - ubuntu2004 + bazel: + - 7.x + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - //... diff --git a/modules/ofiuco/0.3.7/source.json b/modules/ofiuco/0.3.7/source.json new file mode 100644 index 00000000000..44e1d897550 --- /dev/null +++ b/modules/ofiuco/0.3.7/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-AJVDvzazmp9CLNO1DO/lLk+y46CN4sPJzPPZFawDbwg=", + "strip_prefix": "ofiuco-0.3.7", + "url": "https://github.com/oxidase/ofiuco/releases/download/v0.3.7/ofiuco-0.3.7.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-b8qQOU77hTbkymwZKTQr/zkOuuC3XRrPaOCmdyINPkg=" + }, + "patch_strip": 1 +} diff --git a/modules/ofiuco/metadata.json b/modules/ofiuco/metadata.json new file mode 100644 index 00000000000..765ee89aec8 --- /dev/null +++ b/modules/ofiuco/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/oxidase/ofiuco", + "maintainers": [ + { + "email": "michael.krasnyk@gmail.com", + "github": "oxidase", + "name": "Michael Krasnyk" + } + ], + "repository": [ + "github:oxidase/ofiuco" + ], + "versions": [ + "0.3.7" + ], + "yanked_versions": {} +} From 86812e7ee9565b6b86aa712e424b34b442ea4855 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Fri, 5 Jul 2024 11:38:59 -0700 Subject: [PATCH 18/52] aspect_rules_lint@1.0.0-rc5 (#2371) Release: https://github.com/aspect-build/rules_lint/releases/tag/v1.0.0-rc5 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Alex Eagle --- .../aspect_rules_lint/1.0.0-rc5/MODULE.bazel | 39 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++++++ .../aspect_rules_lint/1.0.0-rc5/presubmit.yml | 14 +++++++ .../aspect_rules_lint/1.0.0-rc5/source.json | 9 +++++ modules/aspect_rules_lint/metadata.json | 3 +- 5 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 modules/aspect_rules_lint/1.0.0-rc5/MODULE.bazel create mode 100644 modules/aspect_rules_lint/1.0.0-rc5/patches/module_dot_bazel_version.patch create mode 100644 modules/aspect_rules_lint/1.0.0-rc5/presubmit.yml create mode 100644 modules/aspect_rules_lint/1.0.0-rc5/source.json diff --git a/modules/aspect_rules_lint/1.0.0-rc5/MODULE.bazel b/modules/aspect_rules_lint/1.0.0-rc5/MODULE.bazel new file mode 100644 index 00000000000..2f44cc5c85e --- /dev/null +++ b/modules/aspect_rules_lint/1.0.0-rc5/MODULE.bazel @@ -0,0 +1,39 @@ +"Bazel dependencies" + +module( + name = "aspect_rules_lint", + version = "1.0.0-rc5", + compatibility_level = 1, +) + +bazel_dep(name = "aspect_bazel_lib", version = "2.5.0") + +# Needed in the root because we use js_lib_helpers in our aspect impl +# Minimum version needs 'chore: bump bazel-lib to 2.0 by @alexeagle in #1311' +# to allow users on bazel-lib 2.0 +bazel_dep(name = "aspect_rules_js", version = "1.40.0") +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "platforms", version = "0.0.7") +bazel_dep(name = "rules_multirun", version = "0.9.0") +bazel_dep(name = "rules_multitool", version = "0.4.0") + +# Needed in the root because we dereference ProtoInfo in our aspect impl +bazel_dep(name = "rules_proto", version = "6.0.0") + +# Needed in the root because we dereference the toolchain in our aspect impl +bazel_dep(name = "rules_buf", version = "0.1.1") +bazel_dep(name = "toolchains_protoc", version = "0.2.1") + +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") +multitool.hub(lockfile = "//format:multitool.lock.json") +multitool.hub(lockfile = "//lint:multitool.lock.json") +use_repo(multitool, "multitool") + +# Locally, use newer bazel-lib for stardoc +single_version_override( + module_name = "aspect_bazel_lib", + version = "2.7.7", +) + +# 0.5.4 is the first version with bzlmod support +bazel_dep(name = "stardoc", version = "0.5.4", dev_dependency = True, repo_name = "io_bazel_stardoc") diff --git a/modules/aspect_rules_lint/1.0.0-rc5/patches/module_dot_bazel_version.patch b/modules/aspect_rules_lint/1.0.0-rc5/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..f0fbc03a9da --- /dev/null +++ b/modules/aspect_rules_lint/1.0.0-rc5/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,9 +1,9 @@ + "Bazel dependencies" + + module( + name = "aspect_rules_lint", +- version = "0.0.0", ++ version = "1.0.0-rc5", + compatibility_level = 1, + ) + + bazel_dep(name = "aspect_bazel_lib", version = "2.5.0") diff --git a/modules/aspect_rules_lint/1.0.0-rc5/presubmit.yml b/modules/aspect_rules_lint/1.0.0-rc5/presubmit.yml new file mode 100644 index 00000000000..33462e87a38 --- /dev/null +++ b/modules/aspect_rules_lint/1.0.0-rc5/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "example" + matrix: + bazel: ["7.x", "6.x"] + platform: ["debian10", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + bazel: ${{ bazel }} + platform: ${{ platform }} + environment: + BAZELISK_BASE_URL: "https://github.com/bazelbuild/bazel/releases/download/" + test_targets: + - "//..." diff --git a/modules/aspect_rules_lint/1.0.0-rc5/source.json b/modules/aspect_rules_lint/1.0.0-rc5/source.json new file mode 100644 index 00000000000..f4366f1b42a --- /dev/null +++ b/modules/aspect_rules_lint/1.0.0-rc5/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-RVV9MjYCSiEZWY+MpPsKsgNWa8mYAihbwMh2S7XuLjo=", + "strip_prefix": "rules_lint-1.0.0-rc5", + "url": "https://github.com/aspect-build/rules_lint/releases/download/v1.0.0-rc5/rules_lint-v1.0.0-rc5.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-q/gRx7aUbuxvXl42pl2qpxU8LOt0UMJkPnl3pw4fxWo=" + }, + "patch_strip": 1 +} diff --git a/modules/aspect_rules_lint/metadata.json b/modules/aspect_rules_lint/metadata.json index 5ecb3eab446..ad062a6475f 100644 --- a/modules/aspect_rules_lint/metadata.json +++ b/modules/aspect_rules_lint/metadata.json @@ -40,7 +40,8 @@ "1.0.0-rc1", "1.0.0-rc2", "1.0.0-rc3", - "1.0.0-rc4" + "1.0.0-rc4", + "1.0.0-rc5" ], "yanked_versions": {} } From 7294131e64d0ef63f87cf5f86ad5850bfaa8204f Mon Sep 17 00:00:00 2001 From: Ezekiel Warren Date: Mon, 8 Jul 2024 01:15:16 -0700 Subject: [PATCH 19/52] add bzlws (#2369) https://github.com/zaucy/bzlws --- modules/bzlws/0.2.0/MODULE.bazel | 27 +++++++++++++++++++++++++++ modules/bzlws/0.2.0/presubmit.yml | 18 ++++++++++++++++++ modules/bzlws/0.2.0/source.json | 4 ++++ modules/bzlws/metadata.json | 17 +++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 modules/bzlws/0.2.0/MODULE.bazel create mode 100644 modules/bzlws/0.2.0/presubmit.yml create mode 100644 modules/bzlws/0.2.0/source.json create mode 100644 modules/bzlws/metadata.json diff --git a/modules/bzlws/0.2.0/MODULE.bazel b/modules/bzlws/0.2.0/MODULE.bazel new file mode 100644 index 00000000000..1cc32fd5672 --- /dev/null +++ b/modules/bzlws/0.2.0/MODULE.bazel @@ -0,0 +1,27 @@ +module( + name = "bzlws", + version = "0.2.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "yaml-cpp", version = "0.8.0") + +bazel_dep(name = "stardoc", version = "0.7.0", dev_dependency = True) +bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True) +bazel_dep(name = "hedron_compile_commands", dev_dependency = True) +git_override( + module_name = "hedron_compile_commands", + commit = "204aa593e002cbd177d30f11f54cff3559110bb9", + remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git", +) + +llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True) +llvm.toolchain(llvm_version = "17.0.6") +use_repo(llvm, "llvm_toolchain") + +register_toolchains( + "@llvm_toolchain//:all", + dev_dependency = True, +) diff --git a/modules/bzlws/0.2.0/presubmit.yml b/modules/bzlws/0.2.0/presubmit.yml new file mode 100644 index 00000000000..05448549fde --- /dev/null +++ b/modules/bzlws/0.2.0/presubmit.yml @@ -0,0 +1,18 @@ +bcr_test_module: + module_path: test + matrix: + platform: + - ubuntu2204 + - windows + - macos_arm64 + # https://github.com/zaucy/bzlws/issues/19 + # - macos + bazel: [7.x] + tasks: + run_test_module: + name: Build test module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: ['//...'] + # https://github.com/zaucy/bzlws/issues/16 + # test_targets: ['//...'] diff --git a/modules/bzlws/0.2.0/source.json b/modules/bzlws/0.2.0/source.json new file mode 100644 index 00000000000..5c8e1202b4a --- /dev/null +++ b/modules/bzlws/0.2.0/source.json @@ -0,0 +1,4 @@ +{ + "integrity": "sha256-jl+BOXQ4QpE2DpndYZ6tN2TSMPvrL023GjfMtL9JjhQ=", + "url": "https://github.com/zaucy/bzlws/releases/download/0.2.0/bzlws-0.2.0.tar.gz" +} diff --git a/modules/bzlws/metadata.json b/modules/bzlws/metadata.json new file mode 100644 index 00000000000..5f3f792e99c --- /dev/null +++ b/modules/bzlws/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/zaucy/bzlws", + "maintainers": [ + { + "email": "ezekiel@seaube.com", + "github": "zaucy", + "name": "Ezekiel Warren" + } + ], + "repository": [ + "github:zaucy/bzlws" + ], + "versions": [ + "0.2.0" + ], + "yanked_versions": {} +} From a900e82da574ec6d1a5102e4806b6cd75febb581 Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Mon, 8 Jul 2024 16:04:38 +0000 Subject: [PATCH 20/52] fix(pugixml): add `includes` argument (#2374) Fixes #2350 --- modules/pugixml/1.14.bcr.1/MODULE.bazel | 6 ++++++ .../1.14.bcr.1/patches/add_build_file.patch | 18 ++++++++++++++++++ .../1.14.bcr.1/patches/module_dot_bazel.patch | 9 +++++++++ modules/pugixml/1.14.bcr.1/presubmit.yml | 10 ++++++++++ modules/pugixml/1.14.bcr.1/source.json | 10 ++++++++++ modules/pugixml/metadata.json | 3 ++- 6 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 modules/pugixml/1.14.bcr.1/MODULE.bazel create mode 100644 modules/pugixml/1.14.bcr.1/patches/add_build_file.patch create mode 100644 modules/pugixml/1.14.bcr.1/patches/module_dot_bazel.patch create mode 100644 modules/pugixml/1.14.bcr.1/presubmit.yml create mode 100644 modules/pugixml/1.14.bcr.1/source.json diff --git a/modules/pugixml/1.14.bcr.1/MODULE.bazel b/modules/pugixml/1.14.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..06e19eec259 --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/MODULE.bazel @@ -0,0 +1,6 @@ +module( + name = "pugixml", + version = "1.14.bcr.1", + compatibility_level = 1, +) +bazel_dep(name = "rules_cc", version = "0.0.9") diff --git a/modules/pugixml/1.14.bcr.1/patches/add_build_file.patch b/modules/pugixml/1.14.bcr.1/patches/add_build_file.patch new file mode 100644 index 00000000000..65435c08b0f --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/patches/add_build_file.patch @@ -0,0 +1,18 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,15 @@ ++""" Builds pugixml. ++""" ++ ++load("@rules_cc//cc:defs.bzl", "cc_library") ++ ++cc_library( ++ name = "pugixml", ++ srcs = ["pugixml.cpp"], ++ hdrs = [ ++ "pugiconfig.hpp", ++ "pugixml.hpp", ++ ], ++ includes = ["."], ++ visibility = ["//visibility:public"], ++) diff --git a/modules/pugixml/1.14.bcr.1/patches/module_dot_bazel.patch b/modules/pugixml/1.14.bcr.1/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..859250a263f --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/patches/module_dot_bazel.patch @@ -0,0 +1,9 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,6 @@ ++module( ++ name = "pugixml", ++ version = "1.14.bcr.1", ++ compatibility_level = 1, ++) ++bazel_dep(name = "rules_cc", version = "0.0.9") diff --git a/modules/pugixml/1.14.bcr.1/presubmit.yml b/modules/pugixml/1.14.bcr.1/presubmit.yml new file mode 100644 index 00000000000..005b8c0eb5a --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/presubmit.yml @@ -0,0 +1,10 @@ +matrix: + platform: ["debian10", "ubuntu2004", "macos", "macos_arm64", "windows"] + bazel: ["7.x"] +tasks: + verify_targets: + name: Verify build targets + bazel: ${{ bazel }} + platform: ${{ platform }} + build_targets: + - '@pugixml' diff --git a/modules/pugixml/1.14.bcr.1/source.json b/modules/pugixml/1.14.bcr.1/source.json new file mode 100644 index 00000000000..9db711676e9 --- /dev/null +++ b/modules/pugixml/1.14.bcr.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/zeux/pugixml/releases/download/v1.14/pugixml-1.14.tar.gz", + "integrity": "sha256-LxDidocMZLHbaAkFCnXhGol6jXRWxL5cay41oRFooBU=", + "strip_prefix": "pugixml-1.14/src", + "patches": { + "add_build_file.patch": "sha256-G4BTgkVmpPFVxSudpzCzKX9j4q6ecn4s/pnq9xq8WPQ=", + "module_dot_bazel.patch": "sha256-koYokgnmPZ4opnO9z8Ilk9dCJP50JMh+piOXxdYG4ic=" + }, + "patch_strip": 0 +} diff --git a/modules/pugixml/metadata.json b/modules/pugixml/metadata.json index 848e69b6d86..a3a46824fad 100644 --- a/modules/pugixml/metadata.json +++ b/modules/pugixml/metadata.json @@ -10,7 +10,8 @@ "github:zeux/pugixml" ], "versions": [ - "1.14" + "1.14", + "1.14.bcr.1" ], "yanked_versions": {} } From 76540885a8c95e72050e95b83df8b91429305944 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Mon, 8 Jul 2024 19:28:22 +0200 Subject: [PATCH 21/52] Update presubmit doc about requiring bazel version (#2366) Fixes https://github.com/bazelbuild/bazel-central-registry/issues/2364 --- docs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 551cbd7b79f..c52e7f82d60 100644 --- a/docs/README.md +++ b/docs/README.md @@ -79,7 +79,7 @@ Then the presubmit will verify building `@zlib//:zlib` succeeds on all specified While you can also specify `test_targets`, it may not always work since test targets can require additional dev dependencies that are not available when your project is not the root module. -**Note that** the task config syntax follows [Bazel CI's specifications](https://github.com/bazelbuild/continuous-integration/tree/master/buildkite#configuring-a-pipeline). +**Note that** the task config syntax follows [Bazel CI's specifications](https://github.com/bazelbuild/continuous-integration/tree/master/buildkite#configuring-a-pipeline). BCR requires the bazel version to be specified for each task via the `bazel` field. ### Test module @@ -119,7 +119,7 @@ local_path_override( ) ``` -**Note that** the task config syntax also follows [Bazel CI's specifications](https://github.com/bazelbuild/continuous-integration/tree/master/buildkite#configuring-a-pipeline), but just one level deeper under `bcr_test_module` and you have to specify the subdirectory of the test module via `module_path`. +**Note that** the task config syntax also follows [Bazel CI's specifications](https://github.com/bazelbuild/continuous-integration/tree/master/buildkite#configuring-a-pipeline), but just one level deeper under `bcr_test_module` and you have to specify the subdirectory of the test module via `module_path`. BCR requires the bazel version to be specified for each task via the `bazel` field. ## Yank a module version From defffd033a05067f2d3890253e9490fb59e76e85 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:31:56 +0200 Subject: [PATCH 22/52] Bump validators from 0.28.1 to 0.31.0 in /tools (#2375) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [validators](https://github.com/python-validators/validators) from 0.28.1 to 0.31.0.
Release notes

Sourced from validators's releases.

0.31.0

Breaking

No breaking changes were introduced in this version.

Features

Maintenance

Full Changelog: 0.30.0...0.31.0

0.30.0

Breaking

No breaking changes were introduced in this version.

Features

Maintenance

Full Changelog: 0.29.0...0.30.0

0.29.0

Breaking ⚠️

Features

Maintenance

Full Changelog: 0.28.3...0.29.0

0.28.3

Breaking

No breaking changes were introduced in this version.

... (truncated)

Changelog

Sourced from validators's changelog.

0.31.0 (2024-07-08)

Breaking

No breaking changes were introduced in this version.

Features

Maintenance

Full Changelog: 0.30.0...0.31.0


0.30.0 (2024-07-04)

Breaking

No breaking changes were introduced in this version.

Features

Maintenance

Full Changelog: 0.29.0...0.30.0


0.29.0 (2024-07-01)

Breaking ⚠️

Features

Maintenance

... (truncated)

Commits
  • e5d7b4a feat: add validators for base16 and base32 encodings (#386)
  • 860ca46 feat: add validator for trx addresses (#384)
  • 4973c49 feat: add validator for eth addresses (#383)
  • a7bcfda Merge pull request #381 from yozachar/workshop
  • 70ff669 chore: update dev deps; adds python EOL info
  • cdc987d Merge pull request #379 from yozachar/workshop
  • 8cf75e5 hotfix: ensure _tld.txt is in sdist and bdist
  • cfa5aa1 Merge pull request #377 from yozachar/workshop
  • 999af26 chore: fix typo; update dev deps; bump version
  • a25f3a7 Merge pull request #376 from python-validators/dependabot/pip/package/request...
  • Additional commits viewable in compare view

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=validators&package-manager=pip&previous-version=0.28.1&new-version=0.31.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- tools/requirements_lock.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/requirements_lock.txt b/tools/requirements_lock.txt index 21374f920d5..fcbd3d79a04 100644 --- a/tools/requirements_lock.txt +++ b/tools/requirements_lock.txt @@ -61,7 +61,7 @@ pyyaml==6.0.1 \ --hash=sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d \ --hash=sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f # via -r tools/requirements.in -validators==0.28.1 \ - --hash=sha256:5ac88e7916c3405f0ce38ac2ac82a477fcf4d90dbbeddd04c8193171fc17f7dc \ - --hash=sha256:890c98789ad884037f059af6ea915ec2d667129d509180c2c590b8009a4c4219 +validators==0.31.0 \ + --hash=sha256:de7574fc56a231c788162f3e7da15bc2053c5ff9e0281d9ff1afb3a7b69498df \ + --hash=sha256:e15a600d81555a4cd409b17bf55946c5edec7748e776afc85ed0a19bdee54e56 # via -r tools/requirements.in From d197f30defd3414fa0afdc5c7098a6976fc3028e Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 23:29:24 +0200 Subject: [PATCH 23/52] rules_multitool@0.11.0 (#2377) Release: https://github.com/theoremlp/rules_multitool/releases/tag/v0.11.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Mark Elliot <123787712+mark-thm@users.noreply.github.com> --- modules/rules_multitool/0.11.0/MODULE.bazel | 18 ++++++++++++++++++ modules/rules_multitool/0.11.0/presubmit.yml | 15 +++++++++++++++ modules/rules_multitool/0.11.0/source.json | 5 +++++ modules/rules_multitool/metadata.json | 3 ++- 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 modules/rules_multitool/0.11.0/MODULE.bazel create mode 100644 modules/rules_multitool/0.11.0/presubmit.yml create mode 100644 modules/rules_multitool/0.11.0/source.json diff --git a/modules/rules_multitool/0.11.0/MODULE.bazel b/modules/rules_multitool/0.11.0/MODULE.bazel new file mode 100644 index 00000000000..9d16a452279 --- /dev/null +++ b/modules/rules_multitool/0.11.0/MODULE.bazel @@ -0,0 +1,18 @@ +"multitool" + +module( + name = "rules_multitool", + version = "0.11.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_features", version = "1.9.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0") +bazel_dep(name = "platforms", version = "0.0.8") + +# ensure toolchains get registered +multitool = use_extension("//multitool:extension.bzl", "multitool") +use_repo(multitool, "multitool") + +register_toolchains("@multitool//toolchains:all") diff --git a/modules/rules_multitool/0.11.0/presubmit.yml b/modules/rules_multitool/0.11.0/presubmit.yml new file mode 100644 index 00000000000..a90b2cabc28 --- /dev/null +++ b/modules/rules_multitool/0.11.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_multitool//...' diff --git a/modules/rules_multitool/0.11.0/source.json b/modules/rules_multitool/0.11.0/source.json new file mode 100644 index 00000000000..c6f0ca32477 --- /dev/null +++ b/modules/rules_multitool/0.11.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-rJfzqyhp0UkBMOaCgDZtRVlRAmalshXGKMWv1L0kXU4=", + "strip_prefix": "rules_multitool-0.11.0", + "url": "https://github.com/theoremlp/rules_multitool/releases/download/v0.11.0/rules_multitool-0.11.0.tar.gz" +} diff --git a/modules/rules_multitool/metadata.json b/modules/rules_multitool/metadata.json index c5167a96976..b70482e9de3 100644 --- a/modules/rules_multitool/metadata.json +++ b/modules/rules_multitool/metadata.json @@ -26,7 +26,8 @@ "0.7.1", "0.8.0", "0.9.0", - "0.10.0" + "0.10.0", + "0.11.0" ], "yanked_versions": {} } From a9409d119b51d5db6d4083902897fba921c5d968 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 8 Jul 2024 14:29:46 -0700 Subject: [PATCH 24/52] Add opentelemetry-proto 1.3.2 (#2378) --- .../opentelemetry-proto/1.3.2/MODULE.bazel | 8 + .../1.3.2/patches/0001-Add-MODULE.bazel.patch | 171 ++++++++++++++++++ .../opentelemetry-proto/1.3.2/presubmit.yml | 12 ++ modules/opentelemetry-proto/1.3.2/source.json | 9 + modules/opentelemetry-proto/metadata.json | 3 +- 5 files changed, 202 insertions(+), 1 deletion(-) create mode 100644 modules/opentelemetry-proto/1.3.2/MODULE.bazel create mode 100644 modules/opentelemetry-proto/1.3.2/patches/0001-Add-MODULE.bazel.patch create mode 100644 modules/opentelemetry-proto/1.3.2/presubmit.yml create mode 100644 modules/opentelemetry-proto/1.3.2/source.json diff --git a/modules/opentelemetry-proto/1.3.2/MODULE.bazel b/modules/opentelemetry-proto/1.3.2/MODULE.bazel new file mode 100644 index 00000000000..702346f9ce6 --- /dev/null +++ b/modules/opentelemetry-proto/1.3.2/MODULE.bazel @@ -0,0 +1,8 @@ +module( + name = "opentelemetry-proto", + version = "1.3.2", + compatibility_level = 0, +) + +bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") diff --git a/modules/opentelemetry-proto/1.3.2/patches/0001-Add-MODULE.bazel.patch b/modules/opentelemetry-proto/1.3.2/patches/0001-Add-MODULE.bazel.patch new file mode 100644 index 00000000000..e5b43ac4402 --- /dev/null +++ b/modules/opentelemetry-proto/1.3.2/patches/0001-Add-MODULE.bazel.patch @@ -0,0 +1,171 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +new file mode 100644 +index 0000000..07d6a90 +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,151 @@ ++# Copyright The OpenTelemetry Authors ++# SPDX-License-Identifier: Apache-2.0 ++ ++load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library") ++load("@rules_proto//proto:defs.bzl", "proto_library") ++ ++package(default_visibility = ["//visibility:public"]) ++ ++proto_library( ++ name = "common_proto", ++ srcs = [ ++ "opentelemetry/proto/common/v1/common.proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "common_proto_cc", ++ deps = [":common_proto"], ++) ++ ++proto_library( ++ name = "resource_proto", ++ srcs = [ ++ "opentelemetry/proto/resource/v1/resource.proto", ++ ], ++ deps = [ ++ ":common_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "resource_proto_cc", ++ deps = [":resource_proto"], ++) ++ ++proto_library( ++ name = "trace_proto", ++ srcs = [ ++ "opentelemetry/proto/trace/v1/trace.proto", ++ ], ++ deps = [ ++ ":common_proto", ++ ":resource_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "trace_proto_cc", ++ deps = [":trace_proto"], ++) ++ ++proto_library( ++ name = "trace_service_proto", ++ srcs = [ ++ "opentelemetry/proto/collector/trace/v1/trace_service.proto", ++ ], ++ deps = [ ++ ":trace_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "trace_service_proto_cc", ++ deps = [":trace_service_proto"], ++) ++ ++cc_grpc_library( ++ name = "trace_service_grpc_cc", ++ srcs = [":trace_service_proto"], ++ generate_mocks = True, ++ grpc_only = True, ++ deps = [":trace_service_proto_cc"], ++) ++ ++proto_library( ++ name = "logs_proto", ++ srcs = [ ++ "opentelemetry/proto/logs/v1/logs.proto", ++ ], ++ deps = [ ++ ":common_proto", ++ ":resource_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "logs_proto_cc", ++ deps = [":logs_proto"], ++) ++ ++proto_library( ++ name = "logs_service_proto", ++ srcs = [ ++ "opentelemetry/proto/collector/logs/v1/logs_service.proto", ++ ], ++ deps = [ ++ ":logs_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "logs_service_proto_cc", ++ deps = [":logs_service_proto"], ++) ++ ++cc_grpc_library( ++ name = "logs_service_grpc_cc", ++ srcs = [":logs_service_proto"], ++ generate_mocks = True, ++ grpc_only = True, ++ deps = [":logs_service_proto_cc"], ++) ++ ++proto_library( ++ name = "metrics_proto", ++ srcs = [ ++ "opentelemetry/proto/metrics/v1/metrics.proto", ++ ], ++ deps = [ ++ ":common_proto", ++ ":resource_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "metrics_proto_cc", ++ deps = [":metrics_proto"], ++) ++ ++proto_library( ++ name = "metrics_service_proto", ++ srcs = [ ++ "opentelemetry/proto/collector/metrics/v1/metrics_service.proto", ++ ], ++ deps = [ ++ ":metrics_proto", ++ ], ++) ++ ++cc_proto_library( ++ name = "metrics_service_proto_cc", ++ deps = [":metrics_service_proto"], ++) ++ ++cc_grpc_library( ++ name = "metrics_service_grpc_cc", ++ srcs = [":metrics_service_proto"], ++ generate_mocks = True, ++ grpc_only = True, ++ deps = [":metrics_service_proto_cc"], ++) +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 0000000..a5a5e54 +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,8 @@ ++module( ++ name = "opentelemetry-proto", ++ version = "1.3.2", ++ compatibility_level = 0, ++) ++ ++bazel_dep(name = "grpc", version = "1.56.3.bcr.1", repo_name = "com_github_grpc_grpc") ++bazel_dep(name = "rules_proto", version = "5.3.0-21.7") diff --git a/modules/opentelemetry-proto/1.3.2/presubmit.yml b/modules/opentelemetry-proto/1.3.2/presubmit.yml new file mode 100644 index 00000000000..0a6384a3fd1 --- /dev/null +++ b/modules/opentelemetry-proto/1.3.2/presubmit.yml @@ -0,0 +1,12 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["6.x", "7.x"] +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + - '--host_cxxopt=-std=c++14' + build_targets: + - '@opentelemetry-proto//...' diff --git a/modules/opentelemetry-proto/1.3.2/source.json b/modules/opentelemetry-proto/1.3.2/source.json new file mode 100644 index 00000000000..2bdac81f1ca --- /dev/null +++ b/modules/opentelemetry-proto/1.3.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-wGnA2WE3zwBdNEEfpn3TtvH4xkrx5/sv4AiaQcQlrNc=", + "strip_prefix": "opentelemetry-proto-1.3.2", + "url": "https://github.com/open-telemetry/opentelemetry-proto/archive/refs/tags/v1.3.2.tar.gz", + "patch_strip": 1, + "patches": { + "0001-Add-MODULE.bazel.patch": "sha256-+zc1zb08g8qwt8yYDqh/MVE5jYYrvNvIwOUG5dqmMBA=" + } +} diff --git a/modules/opentelemetry-proto/metadata.json b/modules/opentelemetry-proto/metadata.json index 037ccd2599a..60a4f2ea575 100644 --- a/modules/opentelemetry-proto/metadata.json +++ b/modules/opentelemetry-proto/metadata.json @@ -12,7 +12,8 @@ ], "versions": [ "1.1.0", - "1.3.1" + "1.3.1", + "1.3.2" ], "yanked_versions": {} } From 248dd0b601a1fd66d3167e99d2864ac393073631 Mon Sep 17 00:00:00 2001 From: Carlos O'Ryan Date: Mon, 8 Jul 2024 22:08:03 +0000 Subject: [PATCH 25/52] opentelemetry-cpp@1.16.0 (#2379) Co-authored-by: Keith Smiley --- modules/opentelemetry-cpp/1.16.0/MODULE.bazel | 25 +++++++++++++++++++ .../0001-Fix-Version-in-MODULE.bazel.patch | 13 ++++++++++ .../opentelemetry-cpp/1.16.0/presubmit.yml | 12 +++++++++ modules/opentelemetry-cpp/1.16.0/source.json | 9 +++++++ modules/opentelemetry-cpp/metadata.json | 3 ++- 5 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 modules/opentelemetry-cpp/1.16.0/MODULE.bazel create mode 100644 modules/opentelemetry-cpp/1.16.0/patches/0001-Fix-Version-in-MODULE.bazel.patch create mode 100644 modules/opentelemetry-cpp/1.16.0/presubmit.yml create mode 100644 modules/opentelemetry-cpp/1.16.0/source.json diff --git a/modules/opentelemetry-cpp/1.16.0/MODULE.bazel b/modules/opentelemetry-cpp/1.16.0/MODULE.bazel new file mode 100644 index 00000000000..c4dd9595e46 --- /dev/null +++ b/modules/opentelemetry-cpp/1.16.0/MODULE.bazel @@ -0,0 +1,25 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +module( + name = "opentelemetry-cpp", + version = "1.16.0", + compatibility_level = 0, + repo_name = "io_opentelemetry_cpp", +) + +bazel_dep(name = "abseil-cpp", version = "20240116.1", repo_name = "com_google_absl") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "curl", version = "8.4.0") +bazel_dep(name = "grpc", version = "1.62.1", repo_name = "com_github_grpc_grpc") +bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "github_nlohmann_json") +bazel_dep(name = "opentelemetry-proto", version = "1.3.1", repo_name = "com_github_opentelemetry_proto") +bazel_dep(name = "opentracing-cpp", version = "1.6.0", repo_name = "com_github_opentracing") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "prometheus-cpp", version = "1.2.4", repo_name = "com_github_jupp0r_prometheus_cpp") +bazel_dep(name = "protobuf", version = "26.0", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") +bazel_dep(name = "zlib", version = "1.3.1.bcr.1") + +bazel_dep(name = "google_benchmark", version = "1.8.3", dev_dependency = True, repo_name = "com_github_google_benchmark") +bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest") diff --git a/modules/opentelemetry-cpp/1.16.0/patches/0001-Fix-Version-in-MODULE.bazel.patch b/modules/opentelemetry-cpp/1.16.0/patches/0001-Fix-Version-in-MODULE.bazel.patch new file mode 100644 index 00000000000..af0880d021f --- /dev/null +++ b/modules/opentelemetry-cpp/1.16.0/patches/0001-Fix-Version-in-MODULE.bazel.patch @@ -0,0 +1,13 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +index 7b84c2b7..a28f7184 100644 +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -3,7 +3,7 @@ + + module( + name = "opentelemetry-cpp", +- version = "0", ++ version = "1.16.0", + compatibility_level = 0, + repo_name = "io_opentelemetry_cpp", + ) diff --git a/modules/opentelemetry-cpp/1.16.0/presubmit.yml b/modules/opentelemetry-cpp/1.16.0/presubmit.yml new file mode 100644 index 00000000000..bfe90185b04 --- /dev/null +++ b/modules/opentelemetry-cpp/1.16.0/presubmit.yml @@ -0,0 +1,12 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: ["7.x"] +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++14' + - '--host_cxxopt=-std=c++14' + build_targets: + - '@opentelemetry-cpp//api' diff --git a/modules/opentelemetry-cpp/1.16.0/source.json b/modules/opentelemetry-cpp/1.16.0/source.json new file mode 100644 index 00000000000..8bc36f25ef4 --- /dev/null +++ b/modules/opentelemetry-cpp/1.16.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-IgmvI/QwlGUd3wB9RBU8I/rNQdmJG5stjLwtybuAZN0=", + "strip_prefix": "opentelemetry-cpp-1.16.0", + "url": "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.16.0.tar.gz", + "patch_strip": 1, + "patches": { + "0001-Fix-Version-in-MODULE.bazel.patch": "sha256-l4mMA2IrIwu342uJcHhXCijPsvtTeEts77zdzpYV+2s=" + } +} diff --git a/modules/opentelemetry-cpp/metadata.json b/modules/opentelemetry-cpp/metadata.json index 6b5ee3ddb61..7c7f45ca115 100644 --- a/modules/opentelemetry-cpp/metadata.json +++ b/modules/opentelemetry-cpp/metadata.json @@ -12,7 +12,8 @@ ], "versions": [ "1.14.2", - "1.14.2.bcr.1" + "1.14.2.bcr.1", + "1.16.0" ], "yanked_versions": {} } From ed68f86be5aa54755291a094a66720acc3d57864 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 8 Jul 2024 16:48:51 -0700 Subject: [PATCH 26/52] Add grpc 1.63.1.bcr.1 (#2380) The only difference is this patches out com_google_googleapis from the module extension. Turns out if you have both of these it picks that one vs the one in MODULE.bazel. Fixes https://github.com/bazelbuild/bazel-central-registry/issues/2334 --- modules/grpc/1.63.1.bcr.1/MODULE.bazel | 81 ++ .../patches/add_module_bazel.patch | 87 ++ .../1.63.1.bcr.1/patches/adopt_bzlmod.patch | 974 ++++++++++++++++++ modules/grpc/1.63.1.bcr.1/presubmit.yml | 33 + modules/grpc/1.63.1.bcr.1/source.json | 10 + modules/grpc/metadata.json | 3 +- 6 files changed, 1187 insertions(+), 1 deletion(-) create mode 100644 modules/grpc/1.63.1.bcr.1/MODULE.bazel create mode 100644 modules/grpc/1.63.1.bcr.1/patches/add_module_bazel.patch create mode 100644 modules/grpc/1.63.1.bcr.1/patches/adopt_bzlmod.patch create mode 100644 modules/grpc/1.63.1.bcr.1/presubmit.yml create mode 100644 modules/grpc/1.63.1.bcr.1/source.json diff --git a/modules/grpc/1.63.1.bcr.1/MODULE.bazel b/modules/grpc/1.63.1.bcr.1/MODULE.bazel new file mode 100644 index 00000000000..2cb1ebc2298 --- /dev/null +++ b/modules/grpc/1.63.1.bcr.1/MODULE.bazel @@ -0,0 +1,81 @@ +module( + name = "grpc", + version = "1.63.1.bcr.1", + compatibility_level = 1, + repo_name = "com_github_grpc_grpc", +) + +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "boringssl", version = "0.0.0-20230215-5c22014") +bazel_dep(name = "c-ares", version = "1.15.0", repo_name = "com_github_cares_cares") +bazel_dep(name = "abseil-cpp", version = "20240116.0", repo_name = "com_google_absl") +bazel_dep(name = "protobuf", version = "26.0.bcr.1", repo_name = "com_google_protobuf") +bazel_dep(name = "re2", version = "2021-09-01", repo_name = "com_googlesource_code_re2") +bazel_dep(name = "rules_proto", version = "4.0.0") +bazel_dep(name = "zlib", version = "1.2.13") +bazel_dep(name = "opentelemetry-cpp", version = "1.14.2", repo_name = "io_opentelemetry_cpp") +bazel_dep(name = "rules_java", version = "5.1.0") +bazel_dep(name = "rules_go", version = "0.39.1", repo_name = "io_bazel_rules_go") +bazel_dep(name = "googletest", version = "1.14.0.bcr.1", repo_name = "com_google_googletest") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "googleapis", version = "0.0.0-20240326-1c8d509c5", repo_name = "com_google_googleapis") +bazel_dep(name = "google_benchmark", version = "1.8.4", repo_name = "com_github_google_benchmark") +bazel_dep(name = "rules_apple", version = "3.5.1", repo_name = "build_bazel_rules_apple") +bazel_dep(name = "apple_support", version = "1.15.1", repo_name = "build_bazel_apple_support") + + +grpc_repo_deps_ext = use_extension("//bazel:grpc_deps.bzl", "grpc_repo_deps_ext") +use_repo( + grpc_repo_deps_ext, + "com_envoyproxy_protoc_gen_validate", + "com_github_cncf_udpa", + "com_github_cncf_xds", + "envoy_api", + "google_cloud_cpp", + "io_opencensus_cpp", +) + +switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules") +switched_rules.use_languages( + cc = True, + grpc = True, + python = True, +) +use_repo(switched_rules, "com_google_googleapis_imports") + +bazel_dep(name = "rules_python", version = "0.29.0") + +PYTHON_VERSIONS = [ + "3.8", + "3.9", + "3.10", + "3.11", + "3.12", +] + +python = use_extension("@rules_python//python/extensions:python.bzl", "python") + +[ + python.toolchain( + is_default = python_version == PYTHON_VERSIONS[-1], + python_version = python_version, + ) + for python_version in PYTHON_VERSIONS +] + +pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") + +[ + pip.parse( + hub_name = "grpc_python_dependencies", + python_version = python_version, + requirements_lock = "//:requirements.bazel.txt", + ) + for python_version in PYTHON_VERSIONS +] + +use_repo(pip, "grpc_python_dependencies") + +grpc_python_deps_ext = use_extension("//bazel:grpc_python_deps.bzl", "grpc_python_deps_ext") +use_repo(grpc_python_deps_ext, "cython") diff --git a/modules/grpc/1.63.1.bcr.1/patches/add_module_bazel.patch b/modules/grpc/1.63.1.bcr.1/patches/add_module_bazel.patch new file mode 100644 index 00000000000..a6e97f99a7f --- /dev/null +++ b/modules/grpc/1.63.1.bcr.1/patches/add_module_bazel.patch @@ -0,0 +1,87 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 0000000000..f5fa74e4bc +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,81 @@ ++module( ++ name = "grpc", ++ version = "1.63.1.bcr.1", ++ compatibility_level = 1, ++ repo_name = "com_github_grpc_grpc", ++) ++ ++bazel_dep(name = "bazel_skylib", version = "1.5.0") ++bazel_dep(name = "platforms", version = "0.0.8") ++bazel_dep(name = "boringssl", version = "0.0.0-20230215-5c22014") ++bazel_dep(name = "c-ares", version = "1.15.0", repo_name = "com_github_cares_cares") ++bazel_dep(name = "abseil-cpp", version = "20240116.0", repo_name = "com_google_absl") ++bazel_dep(name = "protobuf", version = "26.0.bcr.1", repo_name = "com_google_protobuf") ++bazel_dep(name = "re2", version = "2021-09-01", repo_name = "com_googlesource_code_re2") ++bazel_dep(name = "rules_proto", version = "4.0.0") ++bazel_dep(name = "zlib", version = "1.2.13") ++bazel_dep(name = "opentelemetry-cpp", version = "1.14.2", repo_name = "io_opentelemetry_cpp") ++bazel_dep(name = "rules_java", version = "5.1.0") ++bazel_dep(name = "rules_go", version = "0.39.1", repo_name = "io_bazel_rules_go") ++bazel_dep(name = "googletest", version = "1.14.0.bcr.1", repo_name = "com_google_googletest") ++bazel_dep(name = "rules_cc", version = "0.0.9") ++bazel_dep(name = "googleapis", version = "0.0.0-20240326-1c8d509c5", repo_name = "com_google_googleapis") ++bazel_dep(name = "google_benchmark", version = "1.8.4", repo_name = "com_github_google_benchmark") ++bazel_dep(name = "rules_apple", version = "3.5.1", repo_name = "build_bazel_rules_apple") ++bazel_dep(name = "apple_support", version = "1.15.1", repo_name = "build_bazel_apple_support") ++ ++ ++grpc_repo_deps_ext = use_extension("//bazel:grpc_deps.bzl", "grpc_repo_deps_ext") ++use_repo( ++ grpc_repo_deps_ext, ++ "com_envoyproxy_protoc_gen_validate", ++ "com_github_cncf_udpa", ++ "com_github_cncf_xds", ++ "envoy_api", ++ "google_cloud_cpp", ++ "io_opencensus_cpp", ++) ++ ++switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules") ++switched_rules.use_languages( ++ cc = True, ++ grpc = True, ++ python = True, ++) ++use_repo(switched_rules, "com_google_googleapis_imports") ++ ++bazel_dep(name = "rules_python", version = "0.29.0") ++ ++PYTHON_VERSIONS = [ ++ "3.8", ++ "3.9", ++ "3.10", ++ "3.11", ++ "3.12", ++] ++ ++python = use_extension("@rules_python//python/extensions:python.bzl", "python") ++ ++[ ++ python.toolchain( ++ is_default = python_version == PYTHON_VERSIONS[-1], ++ python_version = python_version, ++ ) ++ for python_version in PYTHON_VERSIONS ++] ++ ++pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") ++ ++[ ++ pip.parse( ++ hub_name = "grpc_python_dependencies", ++ python_version = python_version, ++ requirements_lock = "//:requirements.bazel.txt", ++ ) ++ for python_version in PYTHON_VERSIONS ++] ++ ++use_repo(pip, "grpc_python_dependencies") ++ ++grpc_python_deps_ext = use_extension("//bazel:grpc_python_deps.bzl", "grpc_python_deps_ext") ++use_repo(grpc_python_deps_ext, "cython") diff --git a/modules/grpc/1.63.1.bcr.1/patches/adopt_bzlmod.patch b/modules/grpc/1.63.1.bcr.1/patches/adopt_bzlmod.patch new file mode 100644 index 00000000000..2459161122d --- /dev/null +++ b/modules/grpc/1.63.1.bcr.1/patches/adopt_bzlmod.patch @@ -0,0 +1,974 @@ +diff --git a/BUILD b/BUILD +index 2b01d516fc..f6426d06d2 100644 +--- a/BUILD ++++ b/BUILD +@@ -31,7 +31,7 @@ package( + default_visibility = ["//visibility:public"], + features = [ + "-parse_headers", +- "layering_check", ++ "-layering_check", + ], + ) + +diff --git a/bazel/cython_library.bzl b/bazel/cython_library.bzl +index dc2ef7a890..fd2881ed8c 100644 +--- a/bazel/cython_library.bzl ++++ b/bazel/cython_library.bzl +@@ -72,7 +72,7 @@ def pyx_library(name, deps = [], py_deps = [], srcs = [], **kwargs): + native.cc_binary( + name = shared_object_name, + srcs = [stem + ".cpp"], +- deps = deps + ["@local_config_python//:python_headers"], ++ deps = deps + ["@rules_python//python/cc:current_py_cc_headers"], + defines = defines, + linkshared = 1, + ) +diff --git a/bazel/generate_cc.bzl b/bazel/generate_cc.bzl +index c0eb9401ee..a2c7f3a1bb 100644 +--- a/bazel/generate_cc.bzl ++++ b/bazel/generate_cc.bzl +@@ -187,7 +187,7 @@ _generate_cc = rule( + mandatory = False, + ), + "_protoc": attr.label( +- default = Label("//external:protocol_compiler"), ++ default = Label("@com_google_protobuf//:protoc"), + executable = True, + cfg = "exec", + ), +diff --git a/bazel/generate_objc.bzl b/bazel/generate_objc.bzl +index d9518af7d8..d6eeb4cab0 100644 +--- a/bazel/generate_objc.bzl ++++ b/bazel/generate_objc.bzl +@@ -180,7 +180,7 @@ generate_objc = rule( + default = "@com_google_protobuf//:well_known_type_protos", + ), + "_protoc": attr.label( +- default = Label("//external:protocol_compiler"), ++ default = Label("@com_google_protobuf//:protoc"), + executable = True, + cfg = "exec", + ), +diff --git a/bazel/grpc_build_system.bzl b/bazel/grpc_build_system.bzl +index 0a679a0b2a..cc88adbc27 100644 +--- a/bazel/grpc_build_system.bzl ++++ b/bazel/grpc_build_system.bzl +@@ -27,8 +27,6 @@ + Contains macros used throughout the repo. + """ + +-load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test") +-load("@build_bazel_rules_apple//apple/testing/default_runner:ios_test_runner.bzl", "ios_test_runner") + load("@com_google_protobuf//bazel:upb_proto_library.bzl", "upb_proto_library", "upb_proto_reflection_library") + load("//bazel:cc_grpc_library.bzl", "cc_grpc_library") + load("//bazel:copts.bzl", "GRPC_DEFAULT_COPTS") +@@ -65,7 +63,7 @@ def _get_external_deps(external_deps): + elif dep == "cares": + ret += select({ + "//:grpc_no_ares": [], +- "//conditions:default": ["//external:cares"], ++ "//conditions:default": ["//third_party:cares"], + }) + elif dep == "cronet_c_for_grpc": + ret.append("//third_party/objective_c/Cronet:cronet_c_for_grpc") +@@ -80,7 +78,7 @@ def _get_external_deps(external_deps): + elif dep == "libprotobuf_mutator": + ret.append("@com_google_libprotobuf_mutator//:libprotobuf_mutator") + else: +- ret.append("//external:" + dep) ++ ret.append("//third_party:" + dep) + return ret + + def _update_visibility(visibility): +@@ -256,10 +254,6 @@ def ios_cc_test( + test_lib_ios = name + "_test_lib_ios" + ios_tags = tags + ["manual", "ios_cc_test"] + test_runner = "ios_x86_64_sim_runner_" + name +- ios_test_runner( +- name = test_runner, +- device_type = "iPhone X", +- ) + if not any([t for t in tags if t.startswith("no_test_ios")]): + native.objc_library( + name = test_lib_ios, +@@ -272,15 +266,6 @@ def ios_cc_test( + testonly = 1, + ) + ios_test_deps = [":" + test_lib_ios] +- ios_unit_test( +- name = name + "_on_ios", +- size = kwargs.get("size"), +- data = kwargs.get("data"), +- tags = ios_tags, +- minimum_os_version = "9.0", +- runner = test_runner, +- deps = ios_test_deps, +- ) + + def expand_poller_config(name, srcs, deps, tags, args, exclude_pollers, uses_polling, uses_event_engine, flaky): + """Common logic used to parameterize tests for every poller and EventEngine. +diff --git a/bazel/grpc_deps.bzl b/bazel/grpc_deps.bzl +index 0873c63ab1..6d83f4dc47 100644 +--- a/bazel/grpc_deps.bzl ++++ b/bazel/grpc_deps.bzl +@@ -19,274 +19,6 @@ load("@com_github_grpc_grpc//bazel:grpc_python_deps.bzl", "grpc_python_deps") + # buildifier: disable=unnamed-macro + def grpc_deps(): + """Loads dependencies need to compile and test the grpc library.""" +- +- native.bind( +- name = "upb_amalgamation_lib", +- actual = "@com_google_protobuf//upb:amalgamation", +- ) +- +- native.bind( +- name = "upb_base_lib", +- actual = "@com_google_protobuf//upb/base", +- ) +- +- native.bind( +- name = "upb_message_lib", +- actual = "@com_google_protobuf//upb:message", +- ) +- +- native.bind( +- name = "upb_mem_lib", +- actual = "@com_google_protobuf//upb/mem", +- ) +- +- native.bind( +- name = "upb_reflection", +- actual = "@com_google_protobuf//upb:reflection", +- ) +- +- native.bind( +- name = "upb_lib_descriptor", +- actual = "@com_google_protobuf//upb:descriptor_upb_proto", +- ) +- +- native.bind( +- name = "upb_lib_descriptor_reflection", +- actual = "@com_google_protobuf//upb:descriptor_upb_proto_reflection", +- ) +- +- native.bind( +- name = "upb_textformat_lib", +- actual = "@com_google_protobuf//upb/text", +- ) +- +- native.bind( +- name = "upb_json_lib", +- actual = "@com_google_protobuf//upb/json", +- ) +- +- native.bind( +- name = "upb_generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me", +- actual = "@com_google_protobuf//upb:generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me", +- ) +- +- native.bind( +- name = "libssl", +- actual = "@boringssl//:ssl", +- ) +- +- native.bind( +- name = "libcrypto", +- actual = "@boringssl//:crypto", +- ) +- +- native.bind( +- name = "madler_zlib", +- actual = "@zlib//:zlib", +- ) +- +- native.bind( +- name = "protobuf", +- actual = "@com_google_protobuf//:protobuf", +- ) +- +- native.bind( +- name = "protobuf_clib", +- actual = "@com_google_protobuf//:protoc_lib", +- ) +- +- native.bind( +- name = "protobuf_headers", +- actual = "@com_google_protobuf//:protobuf_headers", +- ) +- +- native.bind( +- name = "protocol_compiler", +- actual = "@com_google_protobuf//:protoc", +- ) +- +- native.bind( +- name = "cares", +- actual = "@com_github_cares_cares//:ares", +- ) +- +- native.bind( +- name = "gtest", +- actual = "@com_google_googletest//:gtest", +- ) +- +- native.bind( +- name = "fuzztest", +- actual = "@com_google_fuzztest//fuzztest", +- ) +- +- native.bind( +- name = "fuzztest_main", +- actual = "@com_google_fuzztest//fuzztest:fuzztest_gtest_main", +- ) +- +- native.bind( +- name = "benchmark", +- actual = "@com_github_google_benchmark//:benchmark", +- ) +- +- native.bind( +- name = "re2", +- actual = "@com_googlesource_code_re2//:re2", +- ) +- +- native.bind( +- name = "grpc_cpp_plugin", +- actual = "@com_github_grpc_grpc//src/compiler:grpc_cpp_plugin", +- ) +- +- native.bind( +- name = "grpc++_codegen_proto", +- actual = "@com_github_grpc_grpc//:grpc++_codegen_proto", +- ) +- +- native.bind( +- name = "opencensus-context", +- actual = "@io_opencensus_cpp//opencensus/context:context", +- ) +- +- native.bind( +- name = "opencensus-trace", +- actual = "@io_opencensus_cpp//opencensus/trace:trace", +- ) +- +- native.bind( +- name = "opencensus-trace-context_util", +- actual = "@io_opencensus_cpp//opencensus/trace:context_util", +- ) +- +- native.bind( +- name = "opencensus-trace-propagation", +- actual = "@io_opencensus_cpp//opencensus/trace:grpc_trace_bin", +- ) +- +- native.bind( +- name = "opencensus-trace-span_context", +- actual = "@io_opencensus_cpp//opencensus/trace:span_context", +- ) +- +- native.bind( +- name = "opencensus-stats", +- actual = "@io_opencensus_cpp//opencensus/stats:stats", +- ) +- +- native.bind( +- name = "opencensus-stats-test", +- actual = "@io_opencensus_cpp//opencensus/stats:test_utils", +- ) +- +- native.bind( +- name = "opencensus-with-tag-map", +- actual = "@io_opencensus_cpp//opencensus/tags:with_tag_map", +- ) +- +- native.bind( +- name = "opencensus-tags", +- actual = "@io_opencensus_cpp//opencensus/tags:tags", +- ) +- +- native.bind( +- name = "opencensus-tags-context_util", +- actual = "@io_opencensus_cpp//opencensus/tags:context_util", +- ) +- +- native.bind( +- name = "opencensus-trace-stackdriver_exporter", +- actual = "@io_opencensus_cpp//opencensus/exporters/trace/stackdriver:stackdriver_exporter", +- ) +- +- native.bind( +- name = "opencensus-stats-stackdriver_exporter", +- actual = "@io_opencensus_cpp//opencensus/exporters/stats/stackdriver:stackdriver_exporter", +- ) +- +- native.bind( +- name = "googleapis_trace_grpc_service", +- actual = "@com_google_googleapis//google/devtools/cloudtrace/v2:cloudtrace_cc_grpc", +- ) +- +- native.bind( +- name = "googleapis_monitoring_grpc_service", +- actual = "@com_google_googleapis//google/monitoring/v3:monitoring_cc_grpc", +- ) +- +- native.bind( +- name = "googleapis_logging_grpc_service", +- actual = "@com_google_googleapis//google/logging/v2:logging_cc_grpc", +- ) +- +- native.bind( +- name = "googleapis_logging_cc_proto", +- actual = "@com_google_googleapis//google/logging/v2:logging_cc_proto", +- ) +- +- if "platforms" not in native.existing_rules(): +- http_archive( +- name = "platforms", +- sha256 = "8150406605389ececb6da07cbcb509d5637a3ab9a24bc69b1101531367d89d74", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz", +- "https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz", +- ], +- ) +- +- if "boringssl" not in native.existing_rules(): +- http_archive( +- name = "boringssl", +- # Use github mirror instead of https://boringssl.googlesource.com/boringssl +- # to obtain a boringssl archive with consistent sha256 +- sha256 = "06ba43ff1825c8a9a45dae7f85e532153a531707f6a3e56be1e892fd2d3b75f6", +- strip_prefix = "boringssl-e14d29f68c2d1b02e06f10c83b9b8ea4d061f8df", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/google/boringssl/archive/e14d29f68c2d1b02e06f10c83b9b8ea4d061f8df.tar.gz", +- "https://github.com/google/boringssl/archive/e14d29f68c2d1b02e06f10c83b9b8ea4d061f8df.tar.gz", +- ], +- ) +- +- if "zlib" not in native.existing_rules(): +- http_archive( +- name = "zlib", +- build_file = "@com_github_grpc_grpc//third_party:zlib.BUILD", +- sha256 = "18337cdb32562003c39d9f7322b9a166ad4abfb2b909566428e11f96d2385586", +- strip_prefix = "zlib-09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/madler/zlib/archive/09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851.tar.gz", +- "https://github.com/madler/zlib/archive/09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851.tar.gz", +- ], +- ) +- +- if "com_google_protobuf" not in native.existing_rules(): +- http_archive( +- name = "com_google_protobuf", +- sha256 = "387478260190c540388839a3449c635a69708d92fc38ea6e2364b1196db90ea5", +- strip_prefix = "protobuf-2434ef2adf0c74149b9d547ac5fb545a1ff8b6b5", +- urls = [ +- # https://github.com/protocolbuffers/protobuf/commits/v26.1 +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/protocolbuffers/protobuf/archive/2434ef2adf0c74149b9d547ac5fb545a1ff8b6b5.tar.gz", +- "https://github.com/protocolbuffers/protobuf/archive/2434ef2adf0c74149b9d547ac5fb545a1ff8b6b5.tar.gz", +- ], +- patches = [ +- "@com_github_grpc_grpc//third_party:protobuf.patch", +- ], +- patch_args = ["-p1"], +- ) +- +- if "com_google_googletest" not in native.existing_rules(): +- http_archive( +- name = "com_google_googletest", +- sha256 = "31bf78bd91b96dd5e24fab3bb1d7f3f7453ccbaceec9afb86d6e4816a15ab109", +- strip_prefix = "googletest-2dd1c131950043a8ad5ab0d2dda0e0970596586a", +- urls = [ +- # 2023-10-09 +- "https://github.com/google/googletest/archive/2dd1c131950043a8ad5ab0d2dda0e0970596586a.tar.gz", +- ], +- ) +- + if "com_google_fuzztest" not in native.existing_rules(): + # when updating this remember to run: + # bazel run @com_google_fuzztest//bazel:setup_configs > tools/fuzztest.bazelrc +@@ -300,62 +32,6 @@ def grpc_deps(): + ], + ) + +- if "rules_cc" not in native.existing_rules(): +- http_archive( +- name = "rules_cc", +- sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf", +- strip_prefix = "rules_cc-0.0.9", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz", +- "https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz", +- ], +- ) +- +- if "com_github_google_benchmark" not in native.existing_rules(): +- http_archive( +- name = "com_github_google_benchmark", +- sha256 = "8e7b955f04bc6984e4f14074d0d191474f76a6c8e849e04a9dced49bc975f2d4", +- strip_prefix = "benchmark-344117638c8ff7e239044fd0fa7085839fc03021", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/google/benchmark/archive/344117638c8ff7e239044fd0fa7085839fc03021.tar.gz", +- "https://github.com/google/benchmark/archive/344117638c8ff7e239044fd0fa7085839fc03021.tar.gz", +- ], +- ) +- +- if "com_googlesource_code_re2" not in native.existing_rules(): +- http_archive( +- name = "com_googlesource_code_re2", +- sha256 = "1ae8ccfdb1066a731bba6ee0881baad5efd2cd661acd9569b689f2586e1a50e9", +- strip_prefix = "re2-2022-04-01", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/google/re2/archive/2022-04-01.tar.gz", +- "https://github.com/google/re2/archive/2022-04-01.tar.gz", +- ], +- ) +- +- if "com_github_cares_cares" not in native.existing_rules(): +- http_archive( +- name = "com_github_cares_cares", +- build_file = "@com_github_grpc_grpc//third_party:cares/cares.BUILD", +- sha256 = "bf26e5b25e259911914a85ae847b6d723488adb5af4f8bdeb9d0871a318476e3", +- strip_prefix = "c-ares-6360e96b5cf8e5980c887ce58ef727e53d77243a", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/c-ares/c-ares/archive/6360e96b5cf8e5980c887ce58ef727e53d77243a.tar.gz", +- "https://github.com/c-ares/c-ares/archive/6360e96b5cf8e5980c887ce58ef727e53d77243a.tar.gz", +- ], +- ) +- +- if "com_google_absl" not in native.existing_rules(): +- http_archive( +- name = "com_google_absl", +- sha256 = "338420448b140f0dfd1a1ea3c3ce71b3bc172071f24f4d9a57d59b45037da440", +- strip_prefix = "abseil-cpp-20240116.0", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/abseil/abseil-cpp/archive/20240116.0.tar.gz", +- "https://github.com/abseil/abseil-cpp/archive/20240116.0.tar.gz", +- ], +- ) +- + if "bazel_toolchains" not in native.existing_rules(): + # list of releases is at https://github.com/bazelbuild/bazel-toolchains/releases + http_archive( +@@ -368,27 +44,6 @@ def grpc_deps(): + ], + ) + +- if "bazel_skylib" not in native.existing_rules(): +- http_archive( +- name = "bazel_skylib", +- urls = [ +- "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", +- "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", +- ], +- sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", +- ) +- +- if "bazel_compdb" not in native.existing_rules(): +- http_archive( +- name = "bazel_compdb", +- sha256 = "bcecfd622c4ef272fd4ba42726a52e140b961c4eac23025f18b346c968a8cfb4", +- strip_prefix = "bazel-compilation-database-0.4.5", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/grailbio/bazel-compilation-database/archive/0.4.5.tar.gz", +- "https://github.com/grailbio/bazel-compilation-database/archive/0.4.5.tar.gz", +- ], +- ) +- + if "io_opencensus_cpp" not in native.existing_rules(): + http_archive( + name = "io_opencensus_cpp", +@@ -411,48 +66,6 @@ def grpc_deps(): + ], + ) + +- if "io_bazel_rules_go" not in native.existing_rules(): +- http_archive( +- name = "io_bazel_rules_go", +- sha256 = "69de5c704a05ff37862f7e0f5534d4f479418afc21806c887db544a316f3cb6b", +- urls = [ +- "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz", +- "https://github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz", +- ], +- ) +- +- if "build_bazel_rules_apple" not in native.existing_rules(): +- http_archive( +- name = "build_bazel_rules_apple", +- sha256 = "34c41bfb59cdaea29ac2df5a2fa79e5add609c71bb303b2ebb10985f93fa20e7", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/rules_apple/releases/download/3.1.1/rules_apple.3.1.1.tar.gz", +- "https://github.com/bazelbuild/rules_apple/releases/download/3.1.1/rules_apple.3.1.1.tar.gz", +- ], +- ) +- +- if "build_bazel_apple_support" not in native.existing_rules(): +- http_archive( +- name = "build_bazel_apple_support", +- sha256 = "cf4d63f39c7ba9059f70e995bf5fe1019267d3f77379c2028561a5d7645ef67c", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/bazelbuild/apple_support/releases/download/1.11.1/apple_support.1.11.1.tar.gz", +- "https://github.com/bazelbuild/apple_support/releases/download/1.11.1/apple_support.1.11.1.tar.gz", +- ], +- ) +- +- if "com_google_googleapis" not in native.existing_rules(): +- http_archive( +- name = "com_google_googleapis", +- sha256 = "5bb6b0253ccf64b53d6c7249625a7e3f6c3bc6402abd52d3778bfa48258703a0", +- strip_prefix = "googleapis-2f9af297c84c55c8b871ba4495e01ade42476c92", +- build_file = Label("//bazel:googleapis.BUILD"), +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/googleapis/googleapis/archive/2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz", +- "https://github.com/googleapis/googleapis/archive/2f9af297c84c55c8b871ba4495e01ade42476c92.tar.gz", +- ], +- ) +- + if "bazel_gazelle" not in native.existing_rules(): + http_archive( + name = "bazel_gazelle", +@@ -514,17 +127,6 @@ def grpc_deps(): + ], + ) + +- if "io_opentelemetry_cpp" not in native.existing_rules(): +- http_archive( +- name = "io_opentelemetry_cpp", +- sha256 = "ed681d20a684b7d485a49288e7cfb2d182bf882e5c112c5f2fa3f9e9da2278fc", +- strip_prefix = "opentelemetry-cpp-4bd64c9a336fd438d6c4c9dad2e6b61b0585311f", +- urls = [ +- "https://storage.googleapis.com/grpc-bazel-mirror/github.com/open-telemetry/opentelemetry-cpp/archive/4bd64c9a336fd438d6c4c9dad2e6b61b0585311f.tar.gz", +- "https://github.com/open-telemetry/opentelemetry-cpp/archive/4bd64c9a336fd438d6c4c9dad2e6b61b0585311f.tar.gz", +- ], +- ) +- + if "google_cloud_cpp" not in native.existing_rules(): + http_archive( + name = "google_cloud_cpp", +@@ -535,8 +137,15 @@ def grpc_deps(): + "https://github.com/googleapis/google-cloud-cpp/archive/refs/tags/v2.16.0.tar.gz", + ], + ) +- +- grpc_python_deps() ++ http_archive( ++ name = "com_github_cncf_udpa", ++ sha256 = "0d33b83f8c6368954e72e7785539f0d272a8aba2f6e2e336ed15fd1514bc9899", ++ strip_prefix = "xds-e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7", ++ urls = [ ++ "https://storage.googleapis.com/grpc-bazel-mirror/github.com/cncf/xds/archive/e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7.tar.gz", ++ "https://github.com/cncf/xds/archive/e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7.tar.gz", ++ ], ++ ) + + # TODO: move some dependencies from "grpc_deps" here? + # buildifier: disable=unnamed-macro +@@ -626,3 +235,5 @@ def grpc_test_only_deps(): + strip_prefix = "libprotobuf-mutator-1f95f8083066f5b38fd2db172e7e7f9aa7c49d2d", + build_file = "@com_github_grpc_grpc//third_party:libprotobuf_mutator.BUILD", + ) ++ ++grpc_repo_deps_ext = module_extension(implementation = lambda ctx: grpc_deps()) +diff --git a/bazel/grpc_python_deps.bzl b/bazel/grpc_python_deps.bzl +index dbfff526a1..8948fc573d 100644 +--- a/bazel/grpc_python_deps.bzl ++++ b/bazel/grpc_python_deps.bzl +@@ -16,6 +16,18 @@ + load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + load("@com_github_grpc_grpc//third_party/py:python_configure.bzl", "python_configure") + ++# buildifier: disable=unnamed-macro ++def cython(): ++ http_archive( ++ name = "cython", ++ build_file = "@com_github_grpc_grpc//third_party:cython.BUILD", ++ sha256 = "a2da56cc22be823acf49741b9aa3aa116d4f07fa8e8b35a3cb08b8447b37c607", ++ strip_prefix = "cython-0.29.35", ++ urls = [ ++ "https://github.com/cython/cython/archive/0.29.35.tar.gz", ++ ], ++ ) ++ + # buildifier: disable=unnamed-macro + def grpc_python_deps(): + """Loads dependencies for gRPC Python.""" +@@ -35,12 +47,6 @@ def grpc_python_deps(): + ) + + if "cython" not in native.existing_rules(): +- http_archive( +- name = "cython", +- build_file = "@com_github_grpc_grpc//third_party:cython.BUILD", +- sha256 = "a2da56cc22be823acf49741b9aa3aa116d4f07fa8e8b35a3cb08b8447b37c607", +- strip_prefix = "cython-0.29.35", +- urls = [ +- "https://github.com/cython/cython/archive/0.29.35.tar.gz", +- ], +- ) ++ cython() ++ ++grpc_python_deps_ext = module_extension(implementation = lambda ctx: cython()) +diff --git a/bazel/python_rules.bzl b/bazel/python_rules.bzl +index 9c19d7ac2f..5924fd5b5e 100644 +--- a/bazel/python_rules.bzl ++++ b/bazel/python_rules.bzl +@@ -110,7 +110,7 @@ _gen_py_aspect = aspect( + fragments = ["py"], + attrs = { + "_protoc": attr.label( +- default = Label("//external:protocol_compiler"), ++ default = Label("@com_google_protobuf//:protoc"), + providers = ["files_to_run"], + executable = True, + cfg = "exec", +@@ -166,7 +166,7 @@ py_proto_library = rule( + aspects = [_gen_py_aspect], + ), + "_protoc": attr.label( +- default = Label("//external:protocol_compiler"), ++ default = Label("@com_google_protobuf//:protoc"), + providers = ["files_to_run"], + executable = True, + cfg = "exec", +@@ -190,11 +190,7 @@ def _generate_pb2_grpc_src_impl(context): + arguments = [] + tools = [context.executable._protoc, context.executable._grpc_plugin] + out_dir = get_out_dir(protos, context) +- if out_dir.import_path: +- # is virtual imports +- out_path = out_dir.path +- else: +- out_path = context.genfiles_dir.path ++ out_path = out_dir.path + arguments += get_plugin_args( + context.executable._grpc_plugin, + plugin_flags, +@@ -259,7 +255,7 @@ _generate_pb2_grpc_src = rule( + executable = True, + providers = ["files_to_run"], + cfg = "exec", +- default = Label("//external:protocol_compiler"), ++ default = Label("@com_google_protobuf//:protoc"), + ), + "grpc_library": attr.label( + default = Label("//src/python/grpcio/grpc:grpcio"), +diff --git a/src/core/BUILD b/src/core/BUILD +index 9e247f4fb7..5e30a4d064 100644 +--- a/src/core/BUILD ++++ b/src/core/BUILD +@@ -25,7 +25,7 @@ licenses(["reciprocal"]) + package( + default_visibility = ["//:__subpackages__"], + features = [ +- "layering_check", ++ "-layering_check", + ], + ) + +diff --git a/src/cpp/ext/csm/BUILD b/src/cpp/ext/csm/BUILD +index e822ea37b6..5ee61db1cc 100644 +--- a/src/cpp/ext/csm/BUILD ++++ b/src/cpp/ext/csm/BUILD +@@ -24,7 +24,7 @@ licenses(["reciprocal"]) + package( + default_visibility = ["//visibility:public"], + features = [ +- "layering_check", ++ "-layering_check", + ], + ) + +diff --git a/src/cpp/ext/gcp/BUILD b/src/cpp/ext/gcp/BUILD +index e5466a4cdd..8335995901 100644 +--- a/src/cpp/ext/gcp/BUILD ++++ b/src/cpp/ext/gcp/BUILD +@@ -24,7 +24,7 @@ licenses(["reciprocal"]) + package( + default_visibility = ["//visibility:public"], + features = [ +- "layering_check", ++ "-layering_check", + ], + ) + +diff --git a/src/cpp/ext/otel/BUILD b/src/cpp/ext/otel/BUILD +index 588c769652..aa7ce738a4 100644 +--- a/src/cpp/ext/otel/BUILD ++++ b/src/cpp/ext/otel/BUILD +@@ -24,7 +24,7 @@ licenses(["reciprocal"]) + package( + default_visibility = ["//visibility:public"], + features = [ +- "layering_check", ++ "-layering_check", + ], + ) + +diff --git a/src/objective-c/grpc_objc_internal_library.bzl b/src/objective-c/grpc_objc_internal_library.bzl +index c5ad083b3e..7ed8882351 100644 +--- a/src/objective-c/grpc_objc_internal_library.bzl ++++ b/src/objective-c/grpc_objc_internal_library.bzl +@@ -23,11 +23,6 @@ Each rule listed must be re-written for Google's internal build system, and + each change must be ported from one to the other. + """ + +-load("@build_bazel_rules_apple//apple:ios.bzl", "ios_unit_test") +-load( +- "@build_bazel_rules_apple//apple/testing/default_runner:ios_test_runner.bzl", +- "ios_test_runner", +-) + load("@rules_proto//proto:defs.bzl", "proto_library") + load( + "//bazel:generate_objc.bzl", +@@ -56,19 +51,6 @@ def grpc_objc_ios_unit_test( + env: Optional test environment variables passed to the test + """ + test_runner = "grpc_ios_sim_runner_" + name +- ios_test_runner( +- name = test_runner, +- device_type = IOS_UNIT_TEST_DEVICE_TYPE, +- # os_version = IOS_UNIT_TEST_OS_VERSION, +- test_environment = env, +- ) +- +- ios_unit_test( +- name = name, +- minimum_os_version = "9.0", +- runner = test_runner, +- deps = deps, +- ) + + def proto_library_objc_wrapper( + name, +diff --git a/test/core/transport/binder/end2end/fuzzers/BUILD b/test/core/transport/binder/end2end/fuzzers/BUILD +index 85427723f0..d7ddfe918b 100644 +--- a/test/core/transport/binder/end2end/fuzzers/BUILD ++++ b/test/core/transport/binder/end2end/fuzzers/BUILD +@@ -18,7 +18,7 @@ load("//test/core/util:grpc_fuzzer.bzl", "grpc_proto_fuzzer") + grpc_package( + name = "test/core/transport/binder/end2end/fuzzers", + features = [ +- "layering_check", ++ "-layering_check", + ], + ) + +diff --git a/third_party/BUILD b/third_party/BUILD +index f588409ff7..727f9db80d 100644 +--- a/third_party/BUILD ++++ b/third_party/BUILD +@@ -1,3 +1,5 @@ ++package(default_visibility = ["//:__subpackages__"]) ++ + exports_files([ + "gtest.BUILD", + "zlib.BUILD", +@@ -13,3 +15,208 @@ exports_files([ + "protobuf.patch", + "protoc-gen-validate.patch", + ]) ++ ++alias( ++ name = "upb_amalgamation_lib", ++ actual = "@com_google_protobuf//upb:amalgamation", ++) ++ ++alias( ++ name = "upb_base_lib", ++ actual = "@com_google_protobuf//upb/base", ++) ++ ++alias( ++ name = "upb_message_lib", ++ actual = "@com_google_protobuf//upb:message", ++) ++ ++alias( ++ name = "upb_mem_lib", ++ actual = "@com_google_protobuf//upb/mem", ++) ++ ++alias( ++ name = "upb_reflection", ++ actual = "@com_google_protobuf//upb:reflection", ++) ++ ++alias( ++ name = "upb_lib_descriptor", ++ actual = "@com_google_protobuf//upb:descriptor_upb_proto", ++) ++ ++alias( ++ name = "upb_lib_descriptor_reflection", ++ actual = "@com_google_protobuf//upb:descriptor_upb_proto_reflection", ++) ++ ++alias( ++ name = "upb_textformat_lib", ++ actual = "@com_google_protobuf//upb/text", ++) ++ ++alias( ++ name = "upb_json_lib", ++ actual = "@com_google_protobuf//upb/json", ++) ++ ++alias( ++ name = "upb_generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me", ++ actual = "@com_google_protobuf//upb:generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me", ++) ++ ++alias( ++ name = "libssl", ++ actual = "@boringssl//:ssl", ++) ++ ++alias( ++ name = "libcrypto", ++ actual = "@boringssl//:crypto", ++) ++ ++alias( ++ name = "madler_zlib", ++ actual = "@zlib//:zlib", ++) ++ ++alias( ++ name = "protobuf", ++ actual = "@com_google_protobuf//:protobuf", ++) ++ ++alias( ++ name = "protobuf_clib", ++ actual = "@com_google_protobuf//:protoc_lib", ++) ++ ++alias( ++ name = "protobuf_headers", ++ actual = "@com_google_protobuf//:protobuf_headers", ++) ++ ++alias( ++ name = "protocol_compiler", ++ actual = "@com_google_protobuf//:protoc", ++) ++ ++alias( ++ name = "cares", ++ actual = "@com_github_cares_cares//:ares", ++) ++ ++alias( ++ name = "gtest", ++ actual = "@com_google_googletest//:gtest", ++) ++ ++alias( ++ name = "fuzztest", ++ actual = "@com_google_fuzztest//fuzztest", ++) ++ ++alias( ++ name = "fuzztest_main", ++ actual = "@com_google_fuzztest//fuzztest:fuzztest_gtest_main", ++) ++ ++alias( ++ name = "benchmark", ++ actual = "@com_github_google_benchmark//:benchmark", ++) ++ ++alias( ++ name = "re2", ++ actual = "@com_googlesource_code_re2//:re2", ++) ++ ++alias( ++ name = "grpc_cpp_plugin", ++ actual = "@com_github_grpc_grpc//src/compiler:grpc_cpp_plugin", ++) ++ ++alias( ++ name = "grpc++_codegen_proto", ++ actual = "@com_github_grpc_grpc//:grpc++_codegen_proto", ++) ++ ++alias( ++ name = "opencensus-context", ++ actual = "@io_opencensus_cpp//opencensus/context:context", ++) ++ ++alias( ++ name = "opencensus-trace", ++ actual = "@io_opencensus_cpp//opencensus/trace:trace", ++) ++ ++alias( ++ name = "opencensus-trace-context_util", ++ actual = "@io_opencensus_cpp//opencensus/trace:context_util", ++) ++ ++alias( ++ name = "opencensus-trace-propagation", ++ actual = "@io_opencensus_cpp//opencensus/trace:grpc_trace_bin", ++) ++ ++alias( ++ name = "opencensus-trace-span_context", ++ actual = "@io_opencensus_cpp//opencensus/trace:span_context", ++) ++ ++alias( ++ name = "opencensus-stats", ++ actual = "@io_opencensus_cpp//opencensus/stats:stats", ++) ++ ++alias( ++ name = "opencensus-stats-test", ++ actual = "@io_opencensus_cpp//opencensus/stats:test_utils", ++) ++ ++alias( ++ name = "opencensus-with-tag-map", ++ actual = "@io_opencensus_cpp//opencensus/tags:with_tag_map", ++) ++ ++alias( ++ name = "opencensus-tags", ++ actual = "@io_opencensus_cpp//opencensus/tags:tags", ++) ++ ++alias( ++ name = "opencensus-tags-context_util", ++ actual = "@io_opencensus_cpp//opencensus/tags:context_util", ++) ++ ++alias( ++ name = "opencensus-trace-stackdriver_exporter", ++ actual = "@io_opencensus_cpp//opencensus/exporters/trace/stackdriver:stackdriver_exporter", ++) ++ ++alias( ++ name = "opencensus-stats-stackdriver_exporter", ++ actual = "@io_opencensus_cpp//opencensus/exporters/stats/stackdriver:stackdriver_exporter", ++) ++ ++alias( ++ name = "googleapis_trace_grpc_service", ++ actual = "@com_google_googleapis//google/devtools/cloudtrace/v2:cloudtrace_cc_grpc", ++) ++ ++alias( ++ name = "googleapis_monitoring_grpc_service", ++ actual = "@com_google_googleapis//google/monitoring/v3:monitoring_cc_grpc", ++) ++ ++alias( ++ name = "googleapis_logging_grpc_service", ++ actual = "@com_google_googleapis//google/logging/v2:logging_cc_grpc", ++) ++ ++alias( ++ name = "googleapis_logging_cc_proto", ++ actual = "@com_google_googleapis//google/logging/v2:logging_cc_proto", ++) diff --git a/modules/grpc/1.63.1.bcr.1/presubmit.yml b/modules/grpc/1.63.1.bcr.1/presubmit.yml new file mode 100644 index 00000000000..b7b9f33e8d3 --- /dev/null +++ b/modules/grpc/1.63.1.bcr.1/presubmit.yml @@ -0,0 +1,33 @@ +matrix: + platform: ["debian10", "ubuntu2004"] + bazel: + - 7.x + +tasks: + verify_targets: + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@grpc//:grpc' + - '@grpc//:grpc_unsecure' + - '@grpc//:grpc++' + - '@grpc//:grpc++_unsecure' + - '@grpc//examples/protos/...' + + verify_windows: + platform: windows + bazel: ${{ bazel }} + build_targets: + - '@grpc//:grpc' + - '@grpc//:grpc_unsecure' + - '@grpc//:grpc++' + - '@grpc//:grpc++_unsecure' + + verify_macos: + platform: macos + bazel: ${{ bazel }} + build_targets: + - '@grpc//:grpc' + - '@grpc//:grpc_unsecure' + - '@grpc//:grpc++' + - '@grpc//:grpc++_unsecure' diff --git a/modules/grpc/1.63.1.bcr.1/source.json b/modules/grpc/1.63.1.bcr.1/source.json new file mode 100644 index 00000000000..b860a36d20a --- /dev/null +++ b/modules/grpc/1.63.1.bcr.1/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-MRmOz27Ip5sMQqkEQd3OhY5frmkMLjANXQip9F1xNt8=", + "strip_prefix": "grpc-1.63.1", + "url": "https://github.com/grpc/grpc/archive/refs/tags/v1.63.1.tar.gz", + "patch_strip": 1, + "patches": { + "add_module_bazel.patch": "sha256-c2cptV6iq0VZXRffBVAYLjGcf7SYjt3f1bCfwJ3VMss=", + "adopt_bzlmod.patch": "sha256-/01nyA8FZJEG0YuH+HPwD5ffP6p8LubbgPHahiZ5G4E=" + } +} diff --git a/modules/grpc/metadata.json b/modules/grpc/metadata.json index 9c0a82e17d6..f5f12fb41c3 100644 --- a/modules/grpc/metadata.json +++ b/modules/grpc/metadata.json @@ -21,7 +21,8 @@ "1.62.1", "1.62.1.bcr.1", "1.62.1.bcr.2", - "1.63.1" + "1.63.1", + "1.63.1.bcr.1" ], "yanked_versions": {} } From d459249bbd633bffd455e537b0efc2e7f1b2740c Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 8 Jul 2024 17:51:45 -0700 Subject: [PATCH 27/52] Add curl 8.8.0 (#2381) Based on https://github.com/bazelbuild/bazel-central-registry/pull/2233 but provides platform specific defaults --- modules/curl/8.8.0/MODULE.bazel | 9 + .../curl/8.8.0/patches/add_build_file.patch | 317 ++++++++++++++++++ .../curl/8.8.0/patches/module_dot_bazel.patch | 15 + modules/curl/8.8.0/presubmit.yml | 35 ++ modules/curl/8.8.0/source.json | 10 + modules/curl/metadata.json | 3 +- 6 files changed, 388 insertions(+), 1 deletion(-) create mode 100644 modules/curl/8.8.0/MODULE.bazel create mode 100644 modules/curl/8.8.0/patches/add_build_file.patch create mode 100644 modules/curl/8.8.0/patches/module_dot_bazel.patch create mode 100644 modules/curl/8.8.0/presubmit.yml create mode 100644 modules/curl/8.8.0/source.json diff --git a/modules/curl/8.8.0/MODULE.bazel b/modules/curl/8.8.0/MODULE.bazel new file mode 100644 index 00000000000..24b6c8297b8 --- /dev/null +++ b/modules/curl/8.8.0/MODULE.bazel @@ -0,0 +1,9 @@ +module( + name = "curl", + version = "8.8.0", + compatibility_level = 0, +) + +bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "mbedtls", version = "3.6.0") +bazel_dep(name = "platforms", version = "0.0.10") diff --git a/modules/curl/8.8.0/patches/add_build_file.patch b/modules/curl/8.8.0/patches/add_build_file.patch new file mode 100644 index 00000000000..d9447c92626 --- /dev/null +++ b/modules/curl/8.8.0/patches/add_build_file.patch @@ -0,0 +1,317 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +new file mode 100644 +index 000000000..5dab91dfe +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,311 @@ ++# Copyright The OpenTelemetry Authors ++# SPDX-License-Identifier: Apache-2.0 ++ ++load("@bazel_skylib//rules:common_settings.bzl", "bool_flag", "string_flag") ++ ++package(features = ["no_copts_tokenization"]) ++ ++bool_flag( ++ name = "use_mbedtls", ++ build_setting_default = False, ++) ++ ++config_setting( ++ name = "use_mbedtls_setting", ++ flag_values = {":use_mbedtls": "true"}, ++) ++ ++bool_flag( ++ name = "http_only", ++ build_setting_default = True, ++) ++ ++config_setting( ++ name = "http_only_setting", ++ flag_values = {":http_only": "true"}, ++) ++ ++# Curl's default CA path depends on the OS. If CURL_CA_BUNDLE/CURL_CA_PATH are not set, ++# (and you don't `curl_easy_setopt(curl_, CURLOPT_CAPATH, "/etc/ssl/certs");`), curl ++# will fail to verify server certificates. ++# The string_flag below allows the user to specify their (OS-specific) default CA path ++# like `--@curl//:ca_bundle=/etc/ssl/certs/ca-certificates.crt` on the command line or ++# in .bazelrc. See also https://github.com/curl/curl/blob/curl-8_8_0/acinclude.m4#L1202 ++ ++string_flag( ++ name = "ca_bundle", ++ build_setting_default = "", ++ make_variable = "CURL_CA_BUNDLE", ++) ++ ++config_setting( ++ name = "ca_bundle_is_unset", ++ flag_values = {":ca_bundle": ""}, ++) ++ ++string_flag( ++ name = "ca_path", ++ build_setting_default = "", ++ make_variable = "CURL_CA_PATH", ++) ++ ++config_setting( ++ name = "ca_path_is_unset", ++ flag_values = {":ca_path": ""}, ++) ++ ++_BASE_CURL_COPTS = [ ++ "-DCURL_DISABLE_LDAP=1", ++ "-DENABLE_IPV6=1", ++ "-DGETHOSTNAME_TYPE_ARG2=size_t", ++ "-DGETSERVBYPORT_R_ARGS=6", ++ "-DGETSERVBYPORT_R_BUFSIZE=4096", ++ "-DHAVE_ALARM=1", ++ "-DHAVE_ALLOCA_H=1", ++ "-DHAVE_ARPA_INET_H=1", ++ "-DHAVE_ARPA_TFTP_H=1", ++ "-DHAVE_ASSERT_H=1", ++ "-DHAVE_BASENAME=1", ++ "-DHAVE_BOOL_T=1", ++ "-DHAVE_CLOCK_GETTIME_MONOTONIC=1", ++ "-DHAVE_CONNECT=1", ++ "-DHAVE_DIRENT_H=1", ++ "-DHAVE_DLFCN_H=1", ++ "-DHAVE_ENGINE_LOAD_BUILTIN_ENGINES=1", ++ "-DHAVE_ERRNO_H=1", ++ "-DHAVE_FCNTL=1", ++ "-DHAVE_FCNTL_H=1", ++ "-DHAVE_FCNTL_O_NONBLOCK=1", ++ "-DHAVE_FDOPEN=1", ++ "-DHAVE_FREEADDRINFO=1", ++ "-DHAVE_FREEIFADDRS=1", ++ "-DHAVE_FSETXATTR=1", ++ "-DHAVE_FSETXATTR_5=1", ++ "-DHAVE_FTRUNCATE=1", ++ "-DHAVE_GAI_STRERROR=1", ++ "-DHAVE_GETADDRINFO=1", ++ "-DHAVE_GETADDRINFO_THREADSAFE=1", ++ "-DHAVE_GETEUID=1", ++ "-DHAVE_GETHOSTBYADDR=1", ++ "-DHAVE_GETHOSTBYADDR_R=1", ++ "-DHAVE_GETHOSTBYADDR_R_8=1", ++ "-DHAVE_GETHOSTBYNAME=1", ++ "-DHAVE_GETHOSTBYNAME_R=1", ++ "-DHAVE_GETHOSTBYNAME_R_6=1", ++ "-DHAVE_GETHOSTNAME=1", ++ "-DHAVE_GETIFADDRS=1", ++ "-DHAVE_GETNAMEINFO=1", ++ "-DHAVE_GETPPID=1", ++ "-DHAVE_GETPWUID=1", ++ "-DHAVE_GETPWUID_R=1", ++ "-DHAVE_GETRLIMIT=1", ++ "-DHAVE_GETSERVBYPORT_R=1", ++ "-DHAVE_GETSOCKNAME=1", ++ "-DHAVE_GETTIMEOFDAY=1", ++ "-DHAVE_GMTIME_R=1", ++ "-DHAVE_IFADDRS_H=1", ++ "-DHAVE_IF_NAMETOINDEX=1", ++ "-DHAVE_INET_NTOP=1", ++ "-DHAVE_INET_PTON=1", ++ "-DHAVE_INTTYPES_H=1", ++ "-DHAVE_IOCTL=1", ++ "-DHAVE_IOCTL_FIONBIO=1", ++ "-DHAVE_IOCTL_SIOCGIFADDR=1", ++ "-DHAVE_LIBGEN_H=1", ++ "-DHAVE_LL=1", ++ "-DHAVE_LOCALE_H=1", ++ "-DHAVE_LOCALTIME_R=1", ++ "-DHAVE_LONGLONG=1", ++ "-DHAVE_MALLOC_H=1", ++ "-DHAVE_MEMORY_H=1", ++ "-DHAVE_NETDB_H=1", ++ "-DHAVE_NETINET_IN_H=1", ++ "-DHAVE_NETINET_TCP_H=1", ++ "-DHAVE_NET_IF_H=1", ++ "-DHAVE_OPENDIR=1", ++ "-DHAVE_PIPE=1", ++ "-DHAVE_POLL=1", ++ "-DHAVE_POLL_FINE=1", ++ "-DHAVE_POLL_H=1", ++ "-DHAVE_POSIX_STRERROR_R=1", ++ "-DHAVE_PTHREAD_H=1", ++ "-DHAVE_PWD_H=1", ++ "-DHAVE_RECV=1", ++ "-DHAVE_SELECT=1", ++ "-DHAVE_SEND=1", ++ "-DHAVE_SETJMP_H=1", ++ "-DHAVE_SETLOCALE=1", ++ "-DHAVE_SETRLIMIT=1", ++ "-DHAVE_SETSOCKOPT=1", ++ "-DHAVE_SGTTY_H=1", ++ "-DHAVE_SIGACTION=1", ++ "-DHAVE_SIGINTERRUPT=1", ++ "-DHAVE_SIGNAL=1", ++ "-DHAVE_SIGNAL_H=1", ++ "-DHAVE_SIGSETJMP=1", ++ "-DHAVE_SIG_ATOMIC_T=1", ++ "-DHAVE_SOCKADDR_IN6_SIN6_SCOPE_ID=1", ++ "-DHAVE_SOCKET=1", ++ "-DHAVE_SOCKETPAIR=1", ++ "-DHAVE_STDBOOL_H=1", ++ "-DHAVE_STDINT_H=1", ++ "-DHAVE_STDIO_H=1", ++ "-DHAVE_STDLIB_H=1", ++ "-DHAVE_STRCASECMP=1", ++ "-DHAVE_STRDUP=1", ++ "-DHAVE_STRERROR_R=1", ++ "-DHAVE_STRINGS_H=1", ++ "-DHAVE_STRING_H=1", ++ "-DHAVE_STRNCASECMP=1", ++ "-DHAVE_STRSTR=1", ++ "-DHAVE_STRTOK_R=1", ++ "-DHAVE_STRTOLL=1", ++ "-DHAVE_STRUCT_SOCKADDR_STORAGE=1", ++ "-DHAVE_STRUCT_TIMEVAL=1", ++ "-DHAVE_SYS_IOCTL_H=1", ++ "-DHAVE_SYS_PARAM_H=1", ++ "-DHAVE_SYS_POLL_H=1", ++ "-DHAVE_SYS_RESOURCE_H=1", ++ "-DHAVE_SYS_SELECT_H=1", ++ "-DHAVE_SYS_SOCKET_H=1", ++ "-DHAVE_SYS_STAT_H=1", ++ "-DHAVE_SYS_TIME_H=1", ++ "-DHAVE_SYS_TYPES_H=1", ++ "-DHAVE_SYS_UIO_H=1", ++ "-DHAVE_SYS_UN_H=1", ++ "-DHAVE_SYS_WAIT_H=1", ++ "-DHAVE_SYS_XATTR_H=1", ++ "-DHAVE_TERMIOS_H=1", ++ "-DHAVE_TERMIO_H=1", ++ "-DHAVE_TIME_H=1", ++ "-DHAVE_UNISTD_H=1", ++ "-DHAVE_UTIME=1", ++ "-DHAVE_UTIMES=1", ++ "-DHAVE_UTIME_H=1", ++ "-DHAVE_VARIADIC_MACROS_C99=1", ++ "-DHAVE_VARIADIC_MACROS_GCC=1", ++ "-DHAVE_WRITABLE_ARGV=1", ++ "-DHAVE_WRITEV=1", ++ "-DRECV_TYPE_ARG1=int", ++ "-DRECV_TYPE_ARG2=void*", ++ "-DRECV_TYPE_ARG3=size_t", ++ "-DRECV_TYPE_ARG4=int", ++ "-DRECV_TYPE_RETV=ssize_t", ++ "-DRETSIGTYPE=void", ++ "-DSELECT_QUAL_ARG5=", ++ "-DSELECT_TYPE_ARG1=int", ++ "-DSELECT_TYPE_ARG234=fd_set*", ++ "-DSELECT_TYPE_RETV=int", ++ "-DSEND_QUAL_ARG2=const", ++ "-DSEND_TYPE_ARG1=int", ++ "-DSEND_TYPE_ARG2=void*", ++ "-DSEND_TYPE_ARG3=size_t", ++ "-DSEND_TYPE_ARG4=int", ++ "-DSEND_TYPE_RETV=ssize_t", ++ "-DSIZEOF_CURL_OFF_T=8", ++ "-DSIZEOF_INT=4", ++ "-DSIZEOF_LONG=8", ++ "-DSIZEOF_OFF_T=8", ++ "-DSIZEOF_SHORT=2", ++ "-DSIZEOF_SIZE_T=8", ++ "-DSIZEOF_TIME_T=8", ++ "-DSTDC_HEADERS=1", ++ "-DSTRERROR_R_TYPE_ARG3=size_t", ++ "-DTIME_WITH_SYS_TIME=1", ++ "-DUSE_THREADS_POSIX=1", ++ "-DUSE_UNIX_SOCKETS=1", ++ ++ # Extra defines needed by curl ++ "-DBUILDING_LIBCURL", ++ "-DCURL_HIDDEN_SYMBOLS", ++] ++ ++cc_library( ++ name = "curl", ++ srcs = glob([ ++ "lib/**/*.c", ++ "lib/**/*.h", ++ ]), ++ hdrs = glob(["include/curl/*.h"]), ++ copts = select({ ++ "@platforms//os:windows": [ ++ "/DWIN32", ++ "/DBUILDING_LIBCURL", ++ "/DUSE_WIN32_IDN", ++ "/DWANT_IDN_PROTOTYPES", ++ "/DUSE_IPV6", ++ "/DUSE_WINDOWS_SSPI", ++ "/DUSE_SCHANNEL", ++ ], ++ "@platforms//os:macos": _BASE_CURL_COPTS, ++ "//conditions:default": _BASE_CURL_COPTS + [ ++ "-DHAVE_LINUX_TCP_H=1", ++ "-DHAVE_MSG_NOSIGNAL=1", ++ ], ++ }) + [ ++ "-DOS=\"os\"", ++ ], ++ defines = ["CURL_STATICLIB"], ++ includes = [ ++ "include/", ++ "lib/", ++ ], ++ linkopts = select({ ++ "@platforms//os:windows": [ ++ "-DEFAULTLIB:ws2_32.lib", ++ "-DEFAULTLIB:advapi32.lib", ++ "-DEFAULTLIB:crypt32.lib", ++ "-DEFAULTLIB:Normaliz.lib", ++ ], ++ "@platforms//os:macos": [ ++ "-Wl,-framework,SystemConfiguration", ++ "-lpthread", ++ ], ++ "//conditions:default": [ ++ "-lpthread", ++ ], ++ }), ++ local_defines = select({ ++ "@platforms//os:macos": [ ++ 'CURL_CA_BUNDLE=\\"/etc/ssl/cert.pem\\"', ++ 'CURL_CA_PATH=\\"/etc/ssl/certs\\"', ++ ], ++ "@platforms//os:linux": [ ++ 'CURL_CA_BUNDLE=\\"/etc/ssl/certs/ca-certificates.crt\\"', ++ 'CURL_CA_PATH=\\"/etc/ssl/certs\\"', ++ ], ++ "//conditions:default": [], ++ }) + select({ ++ ":use_mbedtls_setting": ["USE_MBEDTLS"], ++ "//conditions:default": [], ++ }) + select({ ++ ":http_only_setting": ["HTTP_ONLY"], ++ "//conditions:default": [], ++ }) + select({ ++ ":ca_bundle_is_unset": [], ++ "//conditions:default": ['CURL_CA_BUNDLE=\\"$(CURL_CA_BUNDLE)\\"'], ++ }) + select({ ++ ":ca_path_is_unset": [], ++ "//conditions:default": ['CURL_CA_PATH=\\"$(CURL_CA_PATH)\\"'], ++ }), ++ toolchains = [ ++ ":ca_bundle", ++ ":ca_path", ++ ], ++ visibility = ["//visibility:public"], ++ deps = select({ ++ ":use_mbedtls_setting": ["@mbedtls"], ++ "//conditions:default": [], ++ }), ++) ++ ++cc_binary( ++ name = "linktest", ++ linkopts = select({ ++ "@platforms//os:macos": ["-all_load"], ++ "//conditions:default": [], ++ }), ++ linkshared = True, ++ visibility = ["//visibility:private"], ++ deps = [":curl"], ++) diff --git a/modules/curl/8.8.0/patches/module_dot_bazel.patch b/modules/curl/8.8.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..20ce181784a --- /dev/null +++ b/modules/curl/8.8.0/patches/module_dot_bazel.patch @@ -0,0 +1,15 @@ +diff --git a/MODULE.bazel b/MODULE.bazel +new file mode 100644 +index 000000000..24b6c8297 +--- /dev/null ++++ b/MODULE.bazel +@@ -0,0 +1,9 @@ ++module( ++ name = "curl", ++ version = "8.8.0", ++ compatibility_level = 0, ++) ++ ++bazel_dep(name = "bazel_skylib", version = "1.7.1") ++bazel_dep(name = "mbedtls", version = "3.6.0") ++bazel_dep(name = "platforms", version = "0.0.10") diff --git a/modules/curl/8.8.0/presubmit.yml b/modules/curl/8.8.0/presubmit.yml new file mode 100644 index 00000000000..972feb71f2a --- /dev/null +++ b/modules/curl/8.8.0/presubmit.yml @@ -0,0 +1,35 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@curl//:curl' + + verify_targets_mbedtls: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@curl//:curl' + build_flags: + - '--@curl//:use_mbedtls=true' + + verify_targets_http_only_disabled: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@curl//:curl' + build_flags: + - '--@curl//:http_only=false' diff --git a/modules/curl/8.8.0/source.json b/modules/curl/8.8.0/source.json new file mode 100644 index 00000000000..34223aa8598 --- /dev/null +++ b/modules/curl/8.8.0/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-d8DhzTWrW0W2WWRak7RtZgIk0AJPEYXoqVzbJ649eH0=", + "strip_prefix": "curl-8.8.0", + "url": "https://github.com/curl/curl/releases/download/curl-8_8_0/curl-8.8.0.tar.gz", + "patch_strip": 1, + "patches": { + "add_build_file.patch": "sha256-UxdkF/Urcn01corjD/UhKI6VQCGPqv2GvuHE2FiQRHw=", + "module_dot_bazel.patch": "sha256-QcYejB5CL4QORcinUW701hWtraX+OFWe/sISBxzwy94=" + } +} diff --git a/modules/curl/metadata.json b/modules/curl/metadata.json index 9464bc57396..9fa62bdfc96 100644 --- a/modules/curl/metadata.json +++ b/modules/curl/metadata.json @@ -13,7 +13,8 @@ "versions": [ "8.4.0", "8.4.0.bcr.1", - "8.7.1" + "8.7.1", + "8.8.0" ], "yanked_versions": {} } From 0562fda47caac0d7e23d3201d140ccdf5a83a6ba Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:21:35 +0000 Subject: [PATCH 28/52] rules_rust@0.47.1 (#2382) Release: https://github.com/bazelbuild/rules_rust/releases/tag/0.47.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: null <11149636+scentini@users.noreply.github.com> --- modules/rules_rust/0.47.1/MODULE.bazel | 185 ++++++++++++++++++++++++ modules/rules_rust/0.47.1/presubmit.yml | 39 +++++ modules/rules_rust/0.47.1/source.json | 5 + modules/rules_rust/metadata.json | 3 +- 4 files changed, 231 insertions(+), 1 deletion(-) create mode 100644 modules/rules_rust/0.47.1/MODULE.bazel create mode 100644 modules/rules_rust/0.47.1/presubmit.yml create mode 100644 modules/rules_rust/0.47.1/source.json diff --git a/modules/rules_rust/0.47.1/MODULE.bazel b/modules/rules_rust/0.47.1/MODULE.bazel new file mode 100644 index 00000000000..5484512013f --- /dev/null +++ b/modules/rules_rust/0.47.1/MODULE.bazel @@ -0,0 +1,185 @@ +"""bazelbuild/rules_rust""" + +module( + name = "rules_rust", + version = "0.47.1", +) + +bazel_dep( + name = "bazel_features", + version = "1.9.1", +) +bazel_dep( + name = "bazel_skylib", + version = "1.5.0", +) +bazel_dep( + name = "platforms", + version = "0.0.8", +) +bazel_dep( + name = "rules_cc", + version = "0.0.9", +) +bazel_dep( + name = "rules_license", + version = "0.0.8", +) +bazel_dep( + name = "rules_proto", + version = "5.3.0-21.7", +) +bazel_dep( + name = "apple_support", + version = "1.13.0", + repo_name = "build_bazel_apple_support", +) +bazel_dep( + name = "protobuf", + version = "21.7", + repo_name = "com_google_protobuf", +) +bazel_dep( + name = "aspect_rules_js", + version = "1.39.0", +) + +bazel_dep( + name = "bazel_ci_rules", + version = "1.0.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_python", + version = "0.31.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_testing", + version = "0.6.0", + dev_dependency = True, +) + +internal_deps = use_extension("//rust/private:extensions.bzl", "i") +use_repo( + internal_deps, + "cargo_bazel.buildifier-darwin-amd64", + "cargo_bazel.buildifier-darwin-arm64", + "cargo_bazel.buildifier-linux-amd64", + "cargo_bazel.buildifier-linux-arm64", + "cargo_bazel.buildifier-windows-amd64.exe", + "com_google_googleapis", + "cui", + "cui__anyhow-1.0.75", + "cui__camino-1.1.6", + "cui__cargo-lock-9.0.0", + "cui__cargo-platform-0.1.4", + "cui__cargo_metadata-0.18.1", + "cui__cargo_toml-0.19.2", + "cui__cfg-expr-0.15.5", + "cui__clap-4.3.11", + "cui__crates-index-2.2.0", + "cui__hex-0.4.3", + "cui__indoc-2.0.4", + "cui__itertools-0.12.0", + "cui__maplit-1.0.2", + "cui__normpath-1.1.1", + "cui__pathdiff-0.2.1", + "cui__regex-1.10.2", + "cui__semver-1.0.20", + "cui__serde-1.0.190", + "cui__serde_json-1.0.108", + "cui__serde_starlark-0.1.14", + "cui__sha2-0.10.8", + "cui__spdx-0.10.3", + "cui__spectral-0.6.0", + "cui__tempfile-3.8.1", + "cui__tera-1.19.1", + "cui__textwrap-0.16.0", + "cui__toml-0.8.10", + "cui__tracing-0.1.40", + "cui__tracing-subscriber-0.3.17", + "generated_inputs_in_external_repo", + "libc", + "llvm-raw", + "rrra__anyhow-1.0.71", + "rrra__clap-4.3.11", + "rrra__env_logger-0.10.0", + "rrra__itertools-0.11.0", + "rrra__log-0.4.19", + "rrra__serde-1.0.171", + "rrra__serde_json-1.0.102", + "rules_rust_bindgen__bindgen-0.69.1", + "rules_rust_bindgen__bindgen-cli-0.69.1", + "rules_rust_bindgen__clang-sys-1.6.1", + "rules_rust_bindgen__clap-4.3.3", + "rules_rust_bindgen__clap_complete-4.3.1", + "rules_rust_bindgen__env_logger-0.10.0", + "rules_rust_prost", + "rules_rust_prost__h2-0.3.19", + "rules_rust_prost__heck", + "rules_rust_prost__prost-0.11.9", + "rules_rust_prost__prost-types-0.11.9", + "rules_rust_prost__protoc-gen-prost-0.2.2", + "rules_rust_prost__protoc-gen-tonic-0.2.2", + "rules_rust_prost__tokio-1.28.2", + "rules_rust_prost__tokio-stream-0.1.14", + "rules_rust_prost__tonic-0.9.2", + "rules_rust_proto__grpc-0.6.2", + "rules_rust_proto__grpc-compiler-0.6.2", + "rules_rust_proto__log-0.4.17", + "rules_rust_proto__protobuf-2.8.2", + "rules_rust_proto__protobuf-codegen-2.8.2", + "rules_rust_proto__tls-api-0.1.22", + "rules_rust_proto__tls-api-stub-0.1.22", + "rules_rust_test_load_arbitrary_tool", + "rules_rust_tinyjson", + "rules_rust_toolchain_test_target_json", + "rules_rust_wasm_bindgen__anyhow-1.0.71", + "rules_rust_wasm_bindgen__assert_cmd-1.0.8", + "rules_rust_wasm_bindgen__diff-0.1.13", + "rules_rust_wasm_bindgen__docopt-1.1.1", + "rules_rust_wasm_bindgen__env_logger-0.8.4", + "rules_rust_wasm_bindgen__log-0.4.19", + "rules_rust_wasm_bindgen__predicates-1.0.8", + "rules_rust_wasm_bindgen__rayon-1.7.0", + "rules_rust_wasm_bindgen__rouille-3.6.2", + "rules_rust_wasm_bindgen__serde-1.0.171", + "rules_rust_wasm_bindgen__serde_derive-1.0.171", + "rules_rust_wasm_bindgen__serde_json-1.0.102", + "rules_rust_wasm_bindgen__tempfile-3.6.0", + "rules_rust_wasm_bindgen__ureq-2.8.0", + "rules_rust_wasm_bindgen__walrus-0.20.3", + "rules_rust_wasm_bindgen__wasm-bindgen-0.2.92", + "rules_rust_wasm_bindgen__wasm-bindgen-cli-support-0.2.92", + "rules_rust_wasm_bindgen__wasm-bindgen-shared-0.2.92", + "rules_rust_wasm_bindgen__wasmparser-0.102.0", + "rules_rust_wasm_bindgen__wasmprinter-0.2.60", + "rules_rust_wasm_bindgen_cli", +) + +rust = use_extension("//rust:extensions.bzl", "rust") +rust.toolchain(edition = "2021") +use_repo(rust, "rust_toolchains") + +register_toolchains( + "@rust_toolchains//:all", +) + +register_toolchains( + "//proto/protobuf:default-proto-toolchain", +) + +register_toolchains( + "//proto/prost:default_prost_toolchain", +) + +register_toolchains( + "//bindgen:default_bindgen_toolchain", +) + +rust_host_tools = use_extension("//rust:extensions.bzl", "rust_host_tools") +use_repo(rust_host_tools, "rust_host_tools") + +cargo_bazel_bootstrap = use_extension("//crate_universe/private/module_extensions:cargo_bazel_bootstrap.bzl", "cargo_bazel_bootstrap") +use_repo(cargo_bazel_bootstrap, "cargo_bazel_bootstrap") diff --git a/modules/rules_rust/0.47.1/presubmit.yml b/modules/rules_rust/0.47.1/presubmit.yml new file mode 100644 index 00000000000..81b8a777128 --- /dev/null +++ b/modules/rules_rust/0.47.1/presubmit.yml @@ -0,0 +1,39 @@ +bcr_test_module: + module_path: "" + matrix: + platform: ["macos", "ubuntu2004"] + bazel: ["6.x", "7.x"] + tasks: + run_tests: + working_directory: examples/bzlmod/hello_world + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + # Remove the lockfile because we generate on Bazel 7, but test on Bazel 6 which may not be able to parse a future-generated lockfile. + shell_commands: + - "rm MODULE.bazel.lock" + run_targets: + - "//third-party:vendor" + - "@rules_rust//tools/rust_analyzer:gen_rust_project" + test_targets: + - "//..." +# Windows is run separately because currently gen_rust_project doesn't run on windows, although it does build +bcr_test_module_windows: + module_path: "" + matrix: + bazel: ["6.x", "7.x"] + tasks: + run_tests: + working_directory: examples/bzlmod/hello_world + name: "Run test module" + platform: windows + bazel: ${{ bazel }} + # Remove the lockfile because we generate on Bazel 7, but test on Bazel 6 which may not be able to parse a future-generated lockfile. + shell_commands: + - "rm MODULE.bazel.lock" + run_targets: + - "//third-party:vendor" + build_targets: + - "@rules_rust//tools/rust_analyzer:gen_rust_project" + test_targets: + - "//..." diff --git a/modules/rules_rust/0.47.1/source.json b/modules/rules_rust/0.47.1/source.json new file mode 100644 index 00000000000..3c98df0d036 --- /dev/null +++ b/modules/rules_rust/0.47.1/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-35cwdTOaqqu4y+aXgIUU2C2PAKMz4+uyJ7/UMIGCmFs=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_rust/releases/download/0.47.1/rules_rust-v0.47.1.tar.gz" +} diff --git a/modules/rules_rust/metadata.json b/modules/rules_rust/metadata.json index 6ce5343ff45..1b6b6e343fc 100644 --- a/modules/rules_rust/metadata.json +++ b/modules/rules_rust/metadata.json @@ -31,7 +31,8 @@ "0.44.0", "0.45.0", "0.45.1", - "0.46.0" + "0.46.0", + "0.47.1" ], "yanked_versions": {} } From de916b5e9199d6e0f1942df0eb0a5788f89e6da1 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 13:10:52 +0200 Subject: [PATCH 29/52] rules_zig@0.5.0 (#2372) Release: https://github.com/aherrmann/rules_zig/releases/tag/v0.5.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ --------- Co-authored-by: Andreas Herrmann --- modules/rules_zig/0.5.0/MODULE.bazel | 68 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++ modules/rules_zig/0.5.0/presubmit.yml | 22 ++++++ modules/rules_zig/0.5.0/source.json | 9 +++ modules/rules_zig/metadata.json | 3 +- 5 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 modules/rules_zig/0.5.0/MODULE.bazel create mode 100644 modules/rules_zig/0.5.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_zig/0.5.0/presubmit.yml create mode 100644 modules/rules_zig/0.5.0/source.json diff --git a/modules/rules_zig/0.5.0/MODULE.bazel b/modules/rules_zig/0.5.0/MODULE.bazel new file mode 100644 index 00000000000..c0f10f2049a --- /dev/null +++ b/modules/rules_zig/0.5.0/MODULE.bazel @@ -0,0 +1,68 @@ +module( + name = "rules_zig", + version = "0.5.0", + compatibility_level = 1, +) + +bazel_dep(name = "aspect_bazel_lib", version = "2.7.8") +bazel_dep(name = "bazel_skylib", version = "1.7.1") +bazel_dep(name = "platforms", version = "0.0.10") + +zig = use_extension("//zig:extensions.bzl", "zig") +zig.index(file = "//zig/private:versions.json") +use_repo(zig, "zig_toolchains") + +register_toolchains("@rules_zig//zig/target:all") + +register_toolchains("@zig_toolchains//:all") + +zig_dev = use_extension( + "//zig:extensions.bzl", + "zig", + dev_dependency = True, +) +zig_dev.toolchain(zig_version = "0.13.0") +zig_dev.toolchain(zig_version = "0.12.1") +zig_dev.toolchain(zig_version = "0.12.0") +zig_dev.toolchain(zig_version = "0.11.0") + +bazel_dep(name = "rules_cc", version = "0.0.9", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.7.0", dev_dependency = True, repo_name = "io_bazel_stardoc") +bazel_dep(name = "gazelle", version = "0.37.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.7.1", dev_dependency = True) +bazel_dep( + name = "buildifier_prebuilt", + version = "6.4.0", + dev_dependency = True, +) +bazel_dep(name = "rules_multirun", version = "0.9.0", dev_dependency = True) +bazel_dep(name = "rules_python", version = "0.33.2", dev_dependency = True) +bazel_dep( + name = "rules_bazel_integration_test", + version = "0.24.1", + dev_dependency = True, +) + +bazel_binaries = use_extension( + "@rules_bazel_integration_test//:extensions.bzl", + "bazel_binaries", + dev_dependency = True, +) + +# NOTE: Keep in sync with WORKSPACE. +bazel_binaries.download(version_file = "//:.bazelversion") +bazel_binaries.download(version = "7.0.0") +use_repo( + bazel_binaries, + "bazel_binaries", + "bazel_binaries_bazelisk", + "build_bazel_bazel_.bazelversion", + "build_bazel_bazel_7_0_0", +) + +# TODO[AH] Should be an implicit transitive dependency through rules_bazel_integration_test. +# However, if we do not include it explicitly, then the runfiles resolution for +# cgrindel_bazel_starlib/shlib/lib/message.sh fails in +# rules_bazel_integration_test/tools/update_deleted_packages.sh when invoked +# through the rules_multirun target //util:update. +bazel_dep(name = "cgrindel_bazel_starlib", version = "0.20.2", dev_dependency = True) diff --git a/modules/rules_zig/0.5.0/patches/module_dot_bazel_version.patch b/modules/rules_zig/0.5.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..5d9d8ece5ca --- /dev/null +++ b/modules/rules_zig/0.5.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_zig", +- version = "0.0.0", ++ version = "0.5.0", + compatibility_level = 1, + ) + + bazel_dep(name = "aspect_bazel_lib", version = "2.7.8") diff --git a/modules/rules_zig/0.5.0/presubmit.yml b/modules/rules_zig/0.5.0/presubmit.yml new file mode 100644 index 00000000000..268d748bed5 --- /dev/null +++ b/modules/rules_zig/0.5.0/presubmit.yml @@ -0,0 +1,22 @@ +matrix: + platform: ["ubuntu2204", "macos"] # ["windows"] + bazel: [7.x] +tasks: + run_tests: + name: "Run tests" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "//..." +bcr_test_module: + module_path: "e2e/workspace" + matrix: + platform: ["ubuntu2204", "macos"] # ["windows"] + bazel: [7.x] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/rules_zig/0.5.0/source.json b/modules/rules_zig/0.5.0/source.json new file mode 100644 index 00000000000..ff9b953089a --- /dev/null +++ b/modules/rules_zig/0.5.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-SB89GREp/paA9DGGWUlTa7Hf8g/Hf0pU0KS75ygjQ18=", + "strip_prefix": "rules_zig-0.5.0", + "url": "https://github.com/aherrmann/rules_zig/releases/download/v0.5.0/rules_zig-0.5.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-I5gjxCKWo3xZD9mI5a5qtsS2lc3u/l8qQS7HNosFH50=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_zig/metadata.json b/modules/rules_zig/metadata.json index 98a202ae5b4..5a522246bd1 100644 --- a/modules/rules_zig/metadata.json +++ b/modules/rules_zig/metadata.json @@ -14,7 +14,8 @@ "0.1.0", "0.2.0", "0.3.0", - "0.4.0" + "0.4.0", + "0.5.0" ], "yanked_versions": {} } From 6bba4a2d788fc93e07b213dabc7d600079ed6f6c Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:50:50 +0200 Subject: [PATCH 30/52] rules_itest@0.0.17 (#2387) Release: https://github.com/dzbarsky/rules_itest/releases/tag/v0.0.17 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/rules_itest/0.0.17/MODULE.bazel | 11 +++++++++++ .../0.0.17/patches/module_dot_bazel_version.patch | 12 ++++++++++++ modules/rules_itest/0.0.17/presubmit.yml | 12 ++++++++++++ modules/rules_itest/0.0.17/source.json | 9 +++++++++ modules/rules_itest/metadata.json | 3 ++- 5 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 modules/rules_itest/0.0.17/MODULE.bazel create mode 100644 modules/rules_itest/0.0.17/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_itest/0.0.17/presubmit.yml create mode 100644 modules/rules_itest/0.0.17/source.json diff --git a/modules/rules_itest/0.0.17/MODULE.bazel b/modules/rules_itest/0.0.17/MODULE.bazel new file mode 100644 index 00000000000..0eba8cd488f --- /dev/null +++ b/modules/rules_itest/0.0.17/MODULE.bazel @@ -0,0 +1,11 @@ +module( + name = "rules_itest", + version = "0.0.17", + compatibility_level = 1, +) + +bazel_dep(name = "aspect_bazel_lib", version = "1.42.0") +bazel_dep(name = "bazel_skylib", version = "1.5.0") +bazel_dep(name = "rules_go", version = "0.44.0") + +bazel_dep(name = "gazelle", version = "0.34.0", dev_dependency = True) diff --git a/modules/rules_itest/0.0.17/patches/module_dot_bazel_version.patch b/modules/rules_itest/0.0.17/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..d2b084caf39 --- /dev/null +++ b/modules/rules_itest/0.0.17/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_itest", +- version = "0.0.1", ++ version = "0.0.17", + compatibility_level = 1, + ) + + bazel_dep(name = "aspect_bazel_lib", version = "1.42.0") diff --git a/modules/rules_itest/0.0.17/presubmit.yml b/modules/rules_itest/0.0.17/presubmit.yml new file mode 100644 index 00000000000..3634ad00842 --- /dev/null +++ b/modules/rules_itest/0.0.17/presubmit.yml @@ -0,0 +1,12 @@ +bcr_test_module: + module_path: "tests" + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + bazel: [6.x, 7.x, rolling] + tasks: + run_tests: + name: "Run tests" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/rules_itest/0.0.17/source.json b/modules/rules_itest/0.0.17/source.json new file mode 100644 index 00000000000..919e48f049e --- /dev/null +++ b/modules/rules_itest/0.0.17/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-bCBURa2kifCfkaydgFvlej+eq92Ee7HAdxZUdzgRndI=", + "strip_prefix": "rules_itest-0.0.17", + "url": "https://github.com/dzbarsky/rules_itest/releases/download/v0.0.17/rules_itest-v0.0.17.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-X6wLbaOCIfH288poEsZyWrqEZdcBD7y8j1+EWvmkwRc=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_itest/metadata.json b/modules/rules_itest/metadata.json index f5e062dbd1c..72f9b7e374b 100644 --- a/modules/rules_itest/metadata.json +++ b/modules/rules_itest/metadata.json @@ -14,7 +14,8 @@ "0.0.9", "0.0.13", "0.0.14", - "0.0.15" + "0.0.15", + "0.0.17" ], "yanked_versions": {} } From 24fea6d5f0537891eacdb149b54093d5de3048e0 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 13:32:24 +0000 Subject: [PATCH 31/52] rules_swift@2.0.0 (#2389) Release: https://github.com/bazelbuild/rules_swift/releases/tag/2.0.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Patrick Balestra --- modules/rules_swift/2.0.0/MODULE.bazel | 44 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++ modules/rules_swift/2.0.0/presubmit.yml | 36 +++++++++++++++ modules/rules_swift/2.0.0/source.json | 9 ++++ modules/rules_swift/metadata.json | 3 +- 5 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 modules/rules_swift/2.0.0/MODULE.bazel create mode 100644 modules/rules_swift/2.0.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_swift/2.0.0/presubmit.yml create mode 100644 modules/rules_swift/2.0.0/source.json diff --git a/modules/rules_swift/2.0.0/MODULE.bazel b/modules/rules_swift/2.0.0/MODULE.bazel new file mode 100644 index 00000000000..f087c7734b8 --- /dev/null +++ b/modules/rules_swift/2.0.0/MODULE.bazel @@ -0,0 +1,44 @@ +module( + name = "rules_swift", + version = "2.0.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 2, + repo_name = "build_bazel_rules_swift", +) + +bazel_dep(name = "bazel_features", version = "1.3.0") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "apple_support", version = "1.15.1", repo_name = "build_bazel_apple_support") +bazel_dep(name = "rules_cc", version = "0.0.2") +bazel_dep(name = "platforms", version = "0.0.9") +bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") +bazel_dep(name = "nlohmann_json", version = "3.6.1", repo_name = "com_github_nlohmann_json") +bazel_dep( + name = "swift_argument_parser", + version = "1.3.1.1", + repo_name = "com_github_apple_swift_argument_parser", +) + +non_module_deps = use_extension("//swift:extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", + "com_github_apple_swift_docc_symbolkit", + "com_github_apple_swift_log", + "com_github_apple_swift_nio", + "com_github_apple_swift_nio_extras", + "com_github_apple_swift_nio_http2", + "com_github_apple_swift_nio_transport_services", + "com_github_apple_swift_protobuf", + "com_github_grpc_grpc_swift", +) + +apple_cc_configure = use_extension("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure_extension") +use_repo(apple_cc_configure, "local_config_apple_cc") + +# Dev dependencies +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "gazelle", version = "0.33.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") diff --git a/modules/rules_swift/2.0.0/patches/module_dot_bazel_version.patch b/modules/rules_swift/2.0.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..cd05c5e7527 --- /dev/null +++ b/modules/rules_swift/2.0.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_swift", +- version = "0", ++ version = "2.0.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 2, + repo_name = "build_bazel_rules_swift", + ) diff --git a/modules/rules_swift/2.0.0/presubmit.yml b/modules/rules_swift/2.0.0/presubmit.yml new file mode 100644 index 00000000000..9eee4598655 --- /dev/null +++ b/modules/rules_swift/2.0.0/presubmit.yml @@ -0,0 +1,36 @@ +shell_commands: &shell_commands +- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME" +- "mkdir $SWIFT_HOME" +- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME" + +matrix: + bazel: + - 7.x + - last_green + platform: + - ubuntu2004 +tasks: + verify_targets: + name: Verify build targets + bazel: ${{ bazel }} + platform: ${{ platform }} + environment: + CC: "clang" + SWIFT_VERSION: "5.9.2" + SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION" + PATH: "$PATH:$SWIFT_HOME/usr/bin" + shell_commands: *shell_commands + build_flags: + - "--action_env=PATH" + build_targets: + - "@rules_swift//examples/xplatform/..." + - "-@rules_swift//examples/xplatform/grpc/..." # TODO: Fix grpc on Linux + - "-@rules_swift//examples/xplatform/proto_library_group/..." # TODO: Fix grpc on Linux + verify_targets_macos: + name: Verify build targets + bazel: ${{ bazel }} + platform: macos + build_targets: + - "@rules_swift//examples/apple/..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_swift/2.0.0/source.json b/modules/rules_swift/2.0.0/source.json new file mode 100644 index 00000000000..badd6f50282 --- /dev/null +++ b/modules/rules_swift/2.0.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-Mu607zPHCNnJpO4PqEdTIu8UnavIGITdw7UOsu//eEM=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_swift/releases/download/2.0.0/rules_swift.2.0.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-RkuvO6fcoi4NwNmTBLyV6doI3uNXmZyAOWqGaBGCDC8=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_swift/metadata.json b/modules/rules_swift/metadata.json index 4e5b542259a..7adc53e4b51 100644 --- a/modules/rules_swift/metadata.json +++ b/modules/rules_swift/metadata.json @@ -46,7 +46,8 @@ "1.16.0", "1.17.0", "1.18.0", - "2.0.0-rc1" + "2.0.0-rc1", + "2.0.0" ], "yanked_versions": {} } From 5269e931f6adf2af042a8d69796129e2a74e26ce Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 16:06:09 +0200 Subject: [PATCH 32/52] rules_ios@4.8.1 (#2390) Release: https://github.com/bazel-ios/rules_ios/releases/tag/4.8.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/rules_ios/4.8.1/MODULE.bazel | 103 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++ modules/rules_ios/4.8.1/presubmit.yml | 17 +++ modules/rules_ios/4.8.1/source.json | 9 ++ modules/rules_ios/metadata.json | 3 +- 5 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 modules/rules_ios/4.8.1/MODULE.bazel create mode 100644 modules/rules_ios/4.8.1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_ios/4.8.1/presubmit.yml create mode 100644 modules/rules_ios/4.8.1/source.json diff --git a/modules/rules_ios/4.8.1/MODULE.bazel b/modules/rules_ios/4.8.1/MODULE.bazel new file mode 100644 index 00000000000..b9a3099ca66 --- /dev/null +++ b/modules/rules_ios/4.8.1/MODULE.bazel @@ -0,0 +1,103 @@ +""" +Defines all the external repositories and dependencies for rules_ios. +""" + +# Defines the rules_ios bzlmod module. +# Version is updated during release to the registry. +module( + name = "rules_ios", + version = "4.8.1", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, + repo_name = "build_bazel_rules_ios", +) + +# Declare the bzlmod dependencies needed by rules_ios and users of rules_ios +bazel_dep( + name = "apple_support", + version = "1.15.1", + repo_name = "build_bazel_apple_support", +) +bazel_dep( + name = "rules_apple", + version = "3.5.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "rules_cc", + version = "0.0.6", +) +bazel_dep( + name = "rules_swift", + version = "1.18.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "bazel_skylib", + version = "1.4.2", +) + +# Declare the development dependencies needed for rules_ios development +bazel_dep( + name = "buildifier_prebuilt", + version = "6.1.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_pkg", + version = "0.9.1", + dev_dependency = True, +) +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +# Load non-bzlmod dependencies from rules_ios +non_module_deps = use_extension("//rules:module_extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "arm64-to-sim", + "com_github_yonaskolb_xcodegen", + "tart", +) + +non_module_dev_deps = use_extension( + "//rules:module_extensions.bzl", + "non_module_dev_deps", + dev_dependency = True, +) +use_repo( + non_module_dev_deps, + "com_github_apple_swiftcollections", +) + +# Configure Xcode +xcode_configure = use_extension( + "//rules:module_extensions.bzl", + "xcode_configure", + dev_dependency = True, +) +xcode_configure.configure( + remote_xcode_label = "", + xcode_locator_label = "//tools/toolchains/xcode_configure:xcode_locator.m", +) + +# Load non-bzlmod dependencies used in this repo from rules_swift +swift_non_module_deps = use_extension("@build_bazel_rules_swift//swift:extensions.bzl", "non_module_deps") +use_repo( + swift_non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", +) + +# Load non-bzlmod dependencies used in this repo from rules_apple +apple_non_module_deps = use_extension("@build_bazel_rules_apple//apple:extensions.bzl", "non_module_deps") +use_repo( + apple_non_module_deps, + "xctestrunner", +) diff --git a/modules/rules_ios/4.8.1/patches/module_dot_bazel_version.patch b/modules/rules_ios/4.8.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..72b2ab0407f --- /dev/null +++ b/modules/rules_ios/4.8.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -5,9 +5,9 @@ + # Defines the rules_ios bzlmod module. + # Version is updated during release to the registry. + module( + name = "rules_ios", +- version = "0", ++ version = "4.8.1", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, diff --git a/modules/rules_ios/4.8.1/presubmit.yml b/modules/rules_ios/4.8.1/presubmit.yml new file mode 100644 index 00000000000..13feb413e34 --- /dev/null +++ b/modules/rules_ios/4.8.1/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + bazel: ["6.x", "7.x"] +tasks: + verify_build_targets_bazel_6: + name: Verify Build targets on macOS with Bazel 6 + platform: macos_arm64 + bazel: 6.x + build_targets: + - "@rules_ios//rules/..." + verify_build_targets_bazel_7: + name: Verify Build targets on macOS with Bazel 7 + platform: macos_arm64 + bazel: 7.x + build_targets: + - "@rules_ios//rules/..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_ios/4.8.1/source.json b/modules/rules_ios/4.8.1/source.json new file mode 100644 index 00000000000..b851cc474eb --- /dev/null +++ b/modules/rules_ios/4.8.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-7kFZvrnJd9CSIz9S7u9D9VOdQwntkdy8xyCqSRYPRRo=", + "strip_prefix": "", + "url": "https://github.com/bazel-ios/rules_ios/releases/download/4.8.1/rules_ios.4.8.1.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-HDl7eLVe1qSJPV+y3CJl5usfGkAIILXbEJQFwSYD9Qs=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ios/metadata.json b/modules/rules_ios/metadata.json index 143b72a2ab8..6dbbacd0cfd 100644 --- a/modules/rules_ios/metadata.json +++ b/modules/rules_ios/metadata.json @@ -34,7 +34,8 @@ "4.6.0", "4.7.0", "4.7.1", - "4.8.0" + "4.8.0", + "4.8.1" ], "yanked_versions": {} } From efa8bbcecbb3fdb17b5147ebc5e51390645eb58b Mon Sep 17 00:00:00 2001 From: Udaya Prakash Date: Tue, 9 Jul 2024 16:18:07 +0200 Subject: [PATCH 33/52] add module cppregpattern (#2388) --- modules/cppregpattern/1.0.1/MODULE.bazel | 5 ++++ .../1.0.1/patches/add_build_file.patch | 29 +++++++++++++++++++ .../1.0.1/patches/module_dot_bazel.patch | 8 +++++ modules/cppregpattern/1.0.1/presubmit.yml | 17 +++++++++++ modules/cppregpattern/1.0.1/source.json | 10 +++++++ modules/cppregpattern/metadata.json | 17 +++++++++++ 6 files changed, 86 insertions(+) create mode 100644 modules/cppregpattern/1.0.1/MODULE.bazel create mode 100644 modules/cppregpattern/1.0.1/patches/add_build_file.patch create mode 100644 modules/cppregpattern/1.0.1/patches/module_dot_bazel.patch create mode 100644 modules/cppregpattern/1.0.1/presubmit.yml create mode 100644 modules/cppregpattern/1.0.1/source.json create mode 100644 modules/cppregpattern/metadata.json diff --git a/modules/cppregpattern/1.0.1/MODULE.bazel b/modules/cppregpattern/1.0.1/MODULE.bazel new file mode 100644 index 00000000000..27a7e481965 --- /dev/null +++ b/modules/cppregpattern/1.0.1/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "cppregpattern", + version = "1.0.1", +) +bazel_dep(name = "rules_license", version = "0.0.8") diff --git a/modules/cppregpattern/1.0.1/patches/add_build_file.patch b/modules/cppregpattern/1.0.1/patches/add_build_file.patch new file mode 100644 index 00000000000..f7542185f0e --- /dev/null +++ b/modules/cppregpattern/1.0.1/patches/add_build_file.patch @@ -0,0 +1,29 @@ +diff --git BUILD.bazel BUILD.bazel +new file mode 100644 +index 00000000..d99b09e7 +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,22 @@ ++load("@rules_license//rules:license.bzl", "license") ++ ++package( ++ default_applicable_licenses = [":license"], ++ default_visibility = ["//visibility:public"], ++) ++ ++exports_files(["LICENSE"]) ++ ++license( ++ name = "license", ++ package_name = "cppregpattern", ++ license_kinds = [ ++ "@rules_license//licenses/spdx:MIT", ++ ], ++) ++ ++cc_library( ++ name = "registry", ++ hdrs = ["include/cppregpattern/registry.h"], ++ strip_include_prefix = "include/", ++) +\ No newline at end of file diff --git a/modules/cppregpattern/1.0.1/patches/module_dot_bazel.patch b/modules/cppregpattern/1.0.1/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..797760b929a --- /dev/null +++ b/modules/cppregpattern/1.0.1/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "cppregpattern", ++ version = "1.0.1", ++) ++bazel_dep(name = "rules_license", version = "0.0.8") diff --git a/modules/cppregpattern/1.0.1/presubmit.yml b/modules/cppregpattern/1.0.1/presubmit.yml new file mode 100644 index 00000000000..c333fe327bd --- /dev/null +++ b/modules/cppregpattern/1.0.1/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@cppregpattern//:registry' diff --git a/modules/cppregpattern/1.0.1/source.json b/modules/cppregpattern/1.0.1/source.json new file mode 100644 index 00000000000..fb060a5f943 --- /dev/null +++ b/modules/cppregpattern/1.0.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/psalvaggio/cppregpattern/archive/17342e50c8248c750e8d35ca93d9f072e388ab58.tar.gz", + "integrity": "sha256-n/WIg6GYEkBrynLuBZg3C/V86ty3Vlf+YU/waFZr/6g=", + "strip_prefix": "cppregpattern-17342e50c8248c750e8d35ca93d9f072e388ab58", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-zmSrN0nyy0/42l47nd5U4xG0w6PHXxYTVDEPjSAMntM=", + "add_build_file.patch": "sha256-0TC1453qisEqtN4KhEnsUO3wSwT8E7vLp9afBfcxEXI=" + } +} diff --git a/modules/cppregpattern/metadata.json b/modules/cppregpattern/metadata.json new file mode 100644 index 00000000000..d10ce595a2f --- /dev/null +++ b/modules/cppregpattern/metadata.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/psalvaggio/cppregpattern", + "maintainers": [ + { + "email": "udayaprakash2899@gmail.com", + "github": "udaya2899", + "name": "Udaya Prakash Nageswaran" + } + ], + "repository": [ + "github:psalvaggio/cppregpattern" + ], + "versions": [ + "1.0.1" + ], + "yanked_versions": {} +} From bfd4a67990a7a40d6eae4a2941186ced4e87c071 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 20:00:44 +0200 Subject: [PATCH 34/52] rules_ios@4.8.2 (#2392) Release: https://github.com/bazel-ios/rules_ios/releases/tag/4.8.2 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: publish-to-bcr-bot <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> --- modules/rules_ios/4.8.2/MODULE.bazel | 104 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++ modules/rules_ios/4.8.2/presubmit.yml | 17 +++ modules/rules_ios/4.8.2/source.json | 9 ++ modules/rules_ios/metadata.json | 3 +- 5 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 modules/rules_ios/4.8.2/MODULE.bazel create mode 100644 modules/rules_ios/4.8.2/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_ios/4.8.2/presubmit.yml create mode 100644 modules/rules_ios/4.8.2/source.json diff --git a/modules/rules_ios/4.8.2/MODULE.bazel b/modules/rules_ios/4.8.2/MODULE.bazel new file mode 100644 index 00000000000..4fca1b59ed9 --- /dev/null +++ b/modules/rules_ios/4.8.2/MODULE.bazel @@ -0,0 +1,104 @@ +""" +Defines all the external repositories and dependencies for rules_ios. +""" + +# Defines the rules_ios bzlmod module. +# Version is updated during release to the registry. +module( + name = "rules_ios", + version = "4.8.2", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, + repo_name = "build_bazel_rules_ios", +) + +# Declare the bzlmod dependencies needed by rules_ios and users of rules_ios +bazel_dep( + name = "apple_support", + version = "1.15.1", + repo_name = "build_bazel_apple_support", +) +bazel_dep( + name = "rules_apple", + version = "3.5.1", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "rules_cc", + version = "0.0.6", +) +bazel_dep( + name = "rules_swift", + version = "1.18.0", + max_compatibility_level = 2, + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "bazel_skylib", + version = "1.4.2", +) + +# Declare the development dependencies needed for rules_ios development +bazel_dep( + name = "buildifier_prebuilt", + version = "6.1.0", + dev_dependency = True, +) +bazel_dep( + name = "rules_pkg", + version = "0.9.1", + dev_dependency = True, +) +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +# Load non-bzlmod dependencies from rules_ios +non_module_deps = use_extension("//rules:module_extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "arm64-to-sim", + "com_github_yonaskolb_xcodegen", + "tart", +) + +non_module_dev_deps = use_extension( + "//rules:module_extensions.bzl", + "non_module_dev_deps", + dev_dependency = True, +) +use_repo( + non_module_dev_deps, + "com_github_apple_swiftcollections", +) + +# Configure Xcode +xcode_configure = use_extension( + "//rules:module_extensions.bzl", + "xcode_configure", + dev_dependency = True, +) +xcode_configure.configure( + remote_xcode_label = "", + xcode_locator_label = "//tools/toolchains/xcode_configure:xcode_locator.m", +) + +# Load non-bzlmod dependencies used in this repo from rules_swift +swift_non_module_deps = use_extension("@build_bazel_rules_swift//swift:extensions.bzl", "non_module_deps") +use_repo( + swift_non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", +) + +# Load non-bzlmod dependencies used in this repo from rules_apple +apple_non_module_deps = use_extension("@build_bazel_rules_apple//apple:extensions.bzl", "non_module_deps") +use_repo( + apple_non_module_deps, + "xctestrunner", +) diff --git a/modules/rules_ios/4.8.2/patches/module_dot_bazel_version.patch b/modules/rules_ios/4.8.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..fd3f55bf2ce --- /dev/null +++ b/modules/rules_ios/4.8.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -5,9 +5,9 @@ + # Defines the rules_ios bzlmod module. + # Version is updated during release to the registry. + module( + name = "rules_ios", +- version = "0", ++ version = "4.8.2", + bazel_compatibility = [ + ">=6.0.0", + ], + compatibility_level = 1, diff --git a/modules/rules_ios/4.8.2/presubmit.yml b/modules/rules_ios/4.8.2/presubmit.yml new file mode 100644 index 00000000000..13feb413e34 --- /dev/null +++ b/modules/rules_ios/4.8.2/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + bazel: ["6.x", "7.x"] +tasks: + verify_build_targets_bazel_6: + name: Verify Build targets on macOS with Bazel 6 + platform: macos_arm64 + bazel: 6.x + build_targets: + - "@rules_ios//rules/..." + verify_build_targets_bazel_7: + name: Verify Build targets on macOS with Bazel 7 + platform: macos_arm64 + bazel: 7.x + build_targets: + - "@rules_ios//rules/..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_ios/4.8.2/source.json b/modules/rules_ios/4.8.2/source.json new file mode 100644 index 00000000000..dcda234040f --- /dev/null +++ b/modules/rules_ios/4.8.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-NA6zFiKjLvoK+CUx4MnJSssRKyIa3a6kmPiWPE85Vtk=", + "strip_prefix": "", + "url": "https://github.com/bazel-ios/rules_ios/releases/download/4.8.2/rules_ios.4.8.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-McPKgxhBNGiBFZbyqmOvpdsuLKT2O396wIGJWLSQqjw=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_ios/metadata.json b/modules/rules_ios/metadata.json index 6dbbacd0cfd..271fade8d1d 100644 --- a/modules/rules_ios/metadata.json +++ b/modules/rules_ios/metadata.json @@ -35,7 +35,8 @@ "4.7.0", "4.7.1", "4.8.0", - "4.8.1" + "4.8.1", + "4.8.2" ], "yanked_versions": {} } From a0ba7147d961a72ae84b879f8cafb9bc33d41657 Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Tue, 9 Jul 2024 20:01:11 +0200 Subject: [PATCH 35/52] feat: add `toolchain_utils@1.0.0-beta.12` (#2391) `RunEnvironmentInfo` data is propagated in `ToolchainInfo`. --- .../1.0.0-beta.12/MODULE.bazel | 24 +++++++++++++++++++ .../1.0.0-beta.12/presubmit.yml | 22 +++++++++++++++++ .../toolchain_utils/1.0.0-beta.12/source.json | 5 ++++ modules/toolchain_utils/metadata.json | 3 ++- 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 modules/toolchain_utils/1.0.0-beta.12/MODULE.bazel create mode 100644 modules/toolchain_utils/1.0.0-beta.12/presubmit.yml create mode 100644 modules/toolchain_utils/1.0.0-beta.12/source.json diff --git a/modules/toolchain_utils/1.0.0-beta.12/MODULE.bazel b/modules/toolchain_utils/1.0.0-beta.12/MODULE.bazel new file mode 100644 index 00000000000..84f228463c2 --- /dev/null +++ b/modules/toolchain_utils/1.0.0-beta.12/MODULE.bazel @@ -0,0 +1,24 @@ +module( + name = "toolchain_utils", + version = "1.0.0-beta.12", + bazel_compatibility = [ + ">=7.0.0", + ], + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "bazel_features", version = "1.13.0") +bazel_dep(name = "platforms", version = "0.0.7") + +triplet = use_repo_rule("//toolchain/local/triplet:defs.bzl", "toolchain_local_triplet") + +triplet( + name = "local", +) + +launcher = use_repo_rule("//toolchain/launcher:repository.bzl", "launcher") + +launcher( + name = "launcher", +) diff --git a/modules/toolchain_utils/1.0.0-beta.12/presubmit.yml b/modules/toolchain_utils/1.0.0-beta.12/presubmit.yml new file mode 100644 index 00000000000..8902f1f38a7 --- /dev/null +++ b/modules/toolchain_utils/1.0.0-beta.12/presubmit.yml @@ -0,0 +1,22 @@ +bcr_test_module: + module_path: e2e + matrix: + bazel: + - 7.x + platform: + - centos7_java11_devtoolset10 + - debian10 + - debian11 + - ubuntu2004 + - ubuntu2204 + - fedora39 + - macos + - macos_arm64 + - windows + tasks: + e2e_tests: + name: Run end-to-end Tests + bazel: ${{ bazel }} + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/toolchain_utils/1.0.0-beta.12/source.json b/modules/toolchain_utils/1.0.0-beta.12/source.json new file mode 100644 index 00000000000..6e879c1a067 --- /dev/null +++ b/modules/toolchain_utils/1.0.0-beta.12/source.json @@ -0,0 +1,5 @@ +{ + "url": "https://gitlab.arm.com/bazel/toolchain_utils/-/releases/v1.0.0-beta.12/downloads/src.tar.gz", + "integrity": "sha512-sAw4pX7AyfYyPtPRJf3ktMavW1iMR6dYHl2L1GkUXRAmJcO/nLDtktn9nl3fA86hNdkUh87l52xbmGCIdzNDHA==", + "strip_prefix": "toolchain_utils-v1.0.0-beta.12" +} diff --git a/modules/toolchain_utils/metadata.json b/modules/toolchain_utils/metadata.json index 5475fad827c..bed5c33054a 100644 --- a/modules/toolchain_utils/metadata.json +++ b/modules/toolchain_utils/metadata.json @@ -12,7 +12,8 @@ "1.0.0-beta.6", "1.0.0-beta.9", "1.0.0-beta.10", - "1.0.0-beta.11" + "1.0.0-beta.11", + "1.0.0-beta.12" ], "maintainers": [ { From ebb353ae5735bd91ec545c8ee34f68248100a876 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 13:05:46 -0500 Subject: [PATCH 36/52] rules_swift@2.1.0 (#2393) Release: https://github.com/bazelbuild/rules_swift/releases/tag/2.1.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Patrick Balestra --- modules/rules_swift/2.1.0/MODULE.bazel | 44 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++ modules/rules_swift/2.1.0/presubmit.yml | 36 +++++++++++++++ modules/rules_swift/2.1.0/source.json | 9 ++++ modules/rules_swift/metadata.json | 3 +- 5 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 modules/rules_swift/2.1.0/MODULE.bazel create mode 100644 modules/rules_swift/2.1.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_swift/2.1.0/presubmit.yml create mode 100644 modules/rules_swift/2.1.0/source.json diff --git a/modules/rules_swift/2.1.0/MODULE.bazel b/modules/rules_swift/2.1.0/MODULE.bazel new file mode 100644 index 00000000000..6f30c89ce16 --- /dev/null +++ b/modules/rules_swift/2.1.0/MODULE.bazel @@ -0,0 +1,44 @@ +module( + name = "rules_swift", + version = "2.1.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 2, + repo_name = "build_bazel_rules_swift", +) + +bazel_dep(name = "bazel_features", version = "1.3.0") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "apple_support", version = "1.15.1", repo_name = "build_bazel_apple_support") +bazel_dep(name = "rules_cc", version = "0.0.2") +bazel_dep(name = "platforms", version = "0.0.9") +bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_proto", version = "5.3.0-21.7") +bazel_dep(name = "nlohmann_json", version = "3.6.1", repo_name = "com_github_nlohmann_json") +bazel_dep( + name = "swift_argument_parser", + version = "1.3.1.1", + repo_name = "com_github_apple_swift_argument_parser", +) + +non_module_deps = use_extension("//swift:extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "build_bazel_rules_swift_index_import", + "build_bazel_rules_swift_local_config", + "com_github_apple_swift_docc_symbolkit", + "com_github_apple_swift_log", + "com_github_apple_swift_nio", + "com_github_apple_swift_nio_extras", + "com_github_apple_swift_nio_http2", + "com_github_apple_swift_nio_transport_services", + "com_github_apple_swift_protobuf", + "com_github_grpc_grpc_swift", +) + +apple_cc_configure = use_extension("@build_bazel_apple_support//crosstool:setup.bzl", "apple_cc_configure_extension") +use_repo(apple_cc_configure, "local_config_apple_cc") + +# Dev dependencies +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "gazelle", version = "0.33.0", dev_dependency = True, repo_name = "bazel_gazelle") +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") diff --git a/modules/rules_swift/2.1.0/patches/module_dot_bazel_version.patch b/modules/rules_swift/2.1.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..509930f89ef --- /dev/null +++ b/modules/rules_swift/2.1.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_swift", +- version = "0", ++ version = "2.1.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 2, + repo_name = "build_bazel_rules_swift", + ) diff --git a/modules/rules_swift/2.1.0/presubmit.yml b/modules/rules_swift/2.1.0/presubmit.yml new file mode 100644 index 00000000000..9eee4598655 --- /dev/null +++ b/modules/rules_swift/2.1.0/presubmit.yml @@ -0,0 +1,36 @@ +shell_commands: &shell_commands +- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME" +- "mkdir $SWIFT_HOME" +- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME" + +matrix: + bazel: + - 7.x + - last_green + platform: + - ubuntu2004 +tasks: + verify_targets: + name: Verify build targets + bazel: ${{ bazel }} + platform: ${{ platform }} + environment: + CC: "clang" + SWIFT_VERSION: "5.9.2" + SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION" + PATH: "$PATH:$SWIFT_HOME/usr/bin" + shell_commands: *shell_commands + build_flags: + - "--action_env=PATH" + build_targets: + - "@rules_swift//examples/xplatform/..." + - "-@rules_swift//examples/xplatform/grpc/..." # TODO: Fix grpc on Linux + - "-@rules_swift//examples/xplatform/proto_library_group/..." # TODO: Fix grpc on Linux + verify_targets_macos: + name: Verify build targets + bazel: ${{ bazel }} + platform: macos + build_targets: + - "@rules_swift//examples/apple/..." + build_flags: + - "--repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1" diff --git a/modules/rules_swift/2.1.0/source.json b/modules/rules_swift/2.1.0/source.json new file mode 100644 index 00000000000..b1aaad37625 --- /dev/null +++ b/modules/rules_swift/2.1.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-jgxyqivlrkTaRFIcRuBwDfGElT6NvF1UIyIrjLFBxk8=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/rules_swift/releases/download/2.1.0/rules_swift.2.1.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-gkv3ebttlFmQNS0tJTF8Y+gY/XRTmsOSMFjDjYeFQiE=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_swift/metadata.json b/modules/rules_swift/metadata.json index 7adc53e4b51..78e98e3ae2c 100644 --- a/modules/rules_swift/metadata.json +++ b/modules/rules_swift/metadata.json @@ -47,7 +47,8 @@ "1.17.0", "1.18.0", "2.0.0-rc1", - "2.0.0" + "2.0.0", + "2.1.0" ], "yanked_versions": {} } From 7f6becd16e8ea50b52418f96914e4b1e619c4864 Mon Sep 17 00:00:00 2001 From: Brentley Jones Date: Tue, 9 Jul 2024 13:31:20 -0500 Subject: [PATCH 37/52] rules_xcodeproj@2.5.0 (#2394) Release: https://github.com/MobileNativeFoundation/rules_xcodeproj/releases/tag/2.5.0 Signed-off-by: Brentley Jones --- modules/rules_xcodeproj/2.5.0/MODULE.bazel | 31 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++++ modules/rules_xcodeproj/2.5.0/presubmit.yml | 7 +++++ modules/rules_xcodeproj/2.5.0/source.json | 9 ++++++ modules/rules_xcodeproj/metadata.json | 3 +- 5 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 modules/rules_xcodeproj/2.5.0/MODULE.bazel create mode 100644 modules/rules_xcodeproj/2.5.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_xcodeproj/2.5.0/presubmit.yml create mode 100644 modules/rules_xcodeproj/2.5.0/source.json diff --git a/modules/rules_xcodeproj/2.5.0/MODULE.bazel b/modules/rules_xcodeproj/2.5.0/MODULE.bazel new file mode 100644 index 00000000000..d4be1d57c02 --- /dev/null +++ b/modules/rules_xcodeproj/2.5.0/MODULE.bazel @@ -0,0 +1,31 @@ +module( + name = "rules_xcodeproj", + version = "2.5.0", + bazel_compatibility = [">=6.3.0"], + compatibility_level = 1, + repo_name = "rules_xcodeproj", +) + +bazel_dep(name = "bazel_features", version = "1.3.0") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep( + name = "rules_swift", + version = "1.6.0", + max_compatibility_level = 2, + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "rules_apple", + version = "2.0.0", + repo_name = "build_bazel_rules_apple", +) +bazel_dep(name = "rules_python", version = "0.27.1") + +internal = use_extension("//xcodeproj:extensions.bzl", "internal") +use_repo(internal, "rules_xcodeproj_generated") + +non_module_deps = use_extension("//xcodeproj:extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "rules_xcodeproj_index_import", +) diff --git a/modules/rules_xcodeproj/2.5.0/patches/module_dot_bazel_version.patch b/modules/rules_xcodeproj/2.5.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..938dda24006 --- /dev/null +++ b/modules/rules_xcodeproj/2.5.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_xcodeproj", +- version = "0.0.0", ++ version = "2.5.0", + bazel_compatibility = [">=6.3.0"], + compatibility_level = 1, + repo_name = "rules_xcodeproj", + ) diff --git a/modules/rules_xcodeproj/2.5.0/presubmit.yml b/modules/rules_xcodeproj/2.5.0/presubmit.yml new file mode 100644 index 00000000000..ba9b059f938 --- /dev/null +++ b/modules/rules_xcodeproj/2.5.0/presubmit.yml @@ -0,0 +1,7 @@ +tasks: + verify_targets_macos: + name: Verify build targets + bazel: 7.x + platform: macos + build_targets: + - '@rules_xcodeproj//tools/generators/pbxproj_prefix:universal_pbxproj_prefix' diff --git a/modules/rules_xcodeproj/2.5.0/source.json b/modules/rules_xcodeproj/2.5.0/source.json new file mode 100644 index 00000000000..f7d54ac161b --- /dev/null +++ b/modules/rules_xcodeproj/2.5.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-1b61qkteXQw0V+oYwpdNjmF5V9J9d6Jao0ZBgGcBdqc=", + "strip_prefix": "", + "url": "https://github.com/MobileNativeFoundation/rules_xcodeproj/releases/download/2.5.0/release.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-jXpKRpyS2RtOojIq8keygNyjP+bsFlsCmNY4tPKeUXk=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_xcodeproj/metadata.json b/modules/rules_xcodeproj/metadata.json index 7de06134d83..4378de7e356 100644 --- a/modules/rules_xcodeproj/metadata.json +++ b/modules/rules_xcodeproj/metadata.json @@ -58,7 +58,8 @@ "2.2.0", "2.3.0", "2.3.1", - "2.4.0" + "2.4.0", + "2.5.0" ], "yanked_versions": {} } From e5445b41834df99db789ce4584b2e7bf7e96debd Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:00:47 -0500 Subject: [PATCH 38/52] rules_xcodeproj@2.5.1 (#2395) Release: https://github.com/MobileNativeFoundation/rules_xcodeproj/releases/tag/2.5.1 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Brentley Jones --- modules/rules_xcodeproj/2.5.1/MODULE.bazel | 31 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++++++ modules/rules_xcodeproj/2.5.1/presubmit.yml | 7 +++++ modules/rules_xcodeproj/2.5.1/source.json | 9 ++++++ modules/rules_xcodeproj/metadata.json | 3 +- 5 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 modules/rules_xcodeproj/2.5.1/MODULE.bazel create mode 100644 modules/rules_xcodeproj/2.5.1/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_xcodeproj/2.5.1/presubmit.yml create mode 100644 modules/rules_xcodeproj/2.5.1/source.json diff --git a/modules/rules_xcodeproj/2.5.1/MODULE.bazel b/modules/rules_xcodeproj/2.5.1/MODULE.bazel new file mode 100644 index 00000000000..deac21d2995 --- /dev/null +++ b/modules/rules_xcodeproj/2.5.1/MODULE.bazel @@ -0,0 +1,31 @@ +module( + name = "rules_xcodeproj", + version = "2.5.1", + bazel_compatibility = [">=6.3.0"], + compatibility_level = 1, + repo_name = "rules_xcodeproj", +) + +bazel_dep(name = "bazel_features", version = "1.3.0") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep( + name = "rules_swift", + version = "1.6.0", + max_compatibility_level = 2, + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "rules_apple", + version = "2.0.0", + repo_name = "build_bazel_rules_apple", +) +bazel_dep(name = "rules_python", version = "0.27.1") + +internal = use_extension("//xcodeproj:extensions.bzl", "internal") +use_repo(internal, "rules_xcodeproj_generated") + +non_module_deps = use_extension("//xcodeproj:extensions.bzl", "non_module_deps") +use_repo( + non_module_deps, + "rules_xcodeproj_index_import", +) diff --git a/modules/rules_xcodeproj/2.5.1/patches/module_dot_bazel_version.patch b/modules/rules_xcodeproj/2.5.1/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..8cec8344e82 --- /dev/null +++ b/modules/rules_xcodeproj/2.5.1/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_xcodeproj", +- version = "0.0.0", ++ version = "2.5.1", + bazel_compatibility = [">=6.3.0"], + compatibility_level = 1, + repo_name = "rules_xcodeproj", + ) diff --git a/modules/rules_xcodeproj/2.5.1/presubmit.yml b/modules/rules_xcodeproj/2.5.1/presubmit.yml new file mode 100644 index 00000000000..ba9b059f938 --- /dev/null +++ b/modules/rules_xcodeproj/2.5.1/presubmit.yml @@ -0,0 +1,7 @@ +tasks: + verify_targets_macos: + name: Verify build targets + bazel: 7.x + platform: macos + build_targets: + - '@rules_xcodeproj//tools/generators/pbxproj_prefix:universal_pbxproj_prefix' diff --git a/modules/rules_xcodeproj/2.5.1/source.json b/modules/rules_xcodeproj/2.5.1/source.json new file mode 100644 index 00000000000..d00f5e1da66 --- /dev/null +++ b/modules/rules_xcodeproj/2.5.1/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-fOmJemM/moauYzk4zjLheL43hgSt7m7WROQlW5NXYFI=", + "strip_prefix": "", + "url": "https://github.com/MobileNativeFoundation/rules_xcodeproj/releases/download/2.5.1/release.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-m5SjWtRvOyhF5FprwAfu6NBJp212UV9XUO2Q2iG/zUY=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_xcodeproj/metadata.json b/modules/rules_xcodeproj/metadata.json index 4378de7e356..b6c3e929081 100644 --- a/modules/rules_xcodeproj/metadata.json +++ b/modules/rules_xcodeproj/metadata.json @@ -59,7 +59,8 @@ "2.3.0", "2.3.1", "2.4.0", - "2.5.0" + "2.5.0", + "2.5.1" ], "yanked_versions": {} } From 69e58a444b9d7dd0be89d8f53be2a9162f2062ee Mon Sep 17 00:00:00 2001 From: aiuto Date: Tue, 9 Jul 2024 16:10:52 -0400 Subject: [PATCH 39/52] Add rules_pkg 1.0.1 (was 1.0.0) (#2180) Add rules_pkg 1.0.1 1.0.0 was a failed attempt because of a dependency loop. --- modules/rules_pkg/1.0.1/MODULE.bazel | 25 ++++++++++++++++ modules/rules_pkg/1.0.1/presubmit.yml | 19 ++++++++++++ modules/rules_pkg/1.0.1/source.json | 4 +++ modules/rules_pkg/metadata.json | 43 ++++++++++++++------------- 4 files changed, 70 insertions(+), 21 deletions(-) create mode 100644 modules/rules_pkg/1.0.1/MODULE.bazel create mode 100644 modules/rules_pkg/1.0.1/presubmit.yml create mode 100644 modules/rules_pkg/1.0.1/source.json diff --git a/modules/rules_pkg/1.0.1/MODULE.bazel b/modules/rules_pkg/1.0.1/MODULE.bazel new file mode 100644 index 00000000000..50f759097d1 --- /dev/null +++ b/modules/rules_pkg/1.0.1/MODULE.bazel @@ -0,0 +1,25 @@ +module( + name = "rules_pkg", + version = "1.0.1", # Must sync with version.bzl. + compatibility_level = 1, + repo_name = "rules_pkg", +) + +# Do not update to newer versions until you need a specific new feature. +bazel_dep(name = "rules_license", version = "0.0.7") +bazel_dep(name = "rules_python", version = "0.31.0") +bazel_dep(name = "bazel_skylib", version = "1.4.2") + +# Only for development +bazel_dep(name = "platforms", version = "0.0.9", dev_dependency = True) +bazel_dep(name = "rules_cc", version = "0.0.9", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True) + +# Find the system rpmbuild if one is available. +find_rpm = use_extension("//toolchains/rpm:rpmbuild_configure.bzl", "find_system_rpmbuild_bzlmod", dev_dependency = True) +use_repo(find_rpm, "rules_pkg_rpmbuild") + +register_toolchains( + "@rules_pkg_rpmbuild//:all", + dev_dependency = True, +) diff --git a/modules/rules_pkg/1.0.1/presubmit.yml b/modules/rules_pkg/1.0.1/presubmit.yml new file mode 100644 index 00000000000..112ed230dbe --- /dev/null +++ b/modules/rules_pkg/1.0.1/presubmit.yml @@ -0,0 +1,19 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@rules_pkg//...' + - '-@rules_pkg//toolchains/...' + - '-@rules_pkg//pkg:make_rpm' diff --git a/modules/rules_pkg/1.0.1/source.json b/modules/rules_pkg/1.0.1/source.json new file mode 100644 index 00000000000..850defab21e --- /dev/null +++ b/modules/rules_pkg/1.0.1/source.json @@ -0,0 +1,4 @@ +{ + "url": "https://github.com/bazelbuild/rules_pkg/releases/download/1.0.1/rules_pkg-1.0.1.tar.gz", + "integrity": "sha256-0gyVGWDtd8t7NBwqWUiFNOSU1a0dMMSBjHNtV3cqn+8=" +} diff --git a/modules/rules_pkg/metadata.json b/modules/rules_pkg/metadata.json index 4c10e29f657..f9d7c62069a 100644 --- a/modules/rules_pkg/metadata.json +++ b/modules/rules_pkg/metadata.json @@ -1,22 +1,23 @@ { - "homepage": "https://github.com/bazelbuild/rules_pkg.git", - "maintainers": [ - { - "email": "bcr-maintainers@bazel.build", - "name": "No Maintainer Specified" - } - ], - "repository": [ - "github:bazelbuild/rules_pkg" - ], - "versions": [ - "0.5.1", - "0.7.0", - "0.8.1", - "0.9.0", - "0.9.1", - "0.10.0", - "0.10.1" - ], - "yanked_versions": {} -} \ No newline at end of file + "homepage": "https://github.com/bazelbuild/rules_pkg.git", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:bazelbuild/rules_pkg" + ], + "versions": [ + "0.5.1", + "0.7.0", + "0.8.1", + "0.9.0", + "0.9.1", + "0.10.0", + "0.10.1", + "1.0.1" + ], + "yanked_versions": {} +} From c4e39b1bcf9a02016d3b12dcdafa133d2f93e326 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:19:36 -0700 Subject: [PATCH 40/52] rules_robolectric@4.12.2 (#2059) Release: https://github.com/robolectric/robolectric-bazel/releases/tag/4.12.2 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Ben Lee --- modules/rules_robolectric/4.12.2/MODULE.bazel | 34 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++ .../rules_robolectric/4.12.2/presubmit.yml | 11 ++++++ modules/rules_robolectric/4.12.2/source.json | 9 +++++ modules/rules_robolectric/metadata.json | 3 +- 5 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 modules/rules_robolectric/4.12.2/MODULE.bazel create mode 100644 modules/rules_robolectric/4.12.2/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_robolectric/4.12.2/presubmit.yml create mode 100644 modules/rules_robolectric/4.12.2/source.json diff --git a/modules/rules_robolectric/4.12.2/MODULE.bazel b/modules/rules_robolectric/4.12.2/MODULE.bazel new file mode 100644 index 00000000000..98e78783373 --- /dev/null +++ b/modules/rules_robolectric/4.12.2/MODULE.bazel @@ -0,0 +1,34 @@ +"Bazel dependencies" + +module( + name = "rules_robolectric", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. + version = "4.12.2", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, +) + +robolectric_repository_extensions = use_extension("//bazel:extensions.bzl", "robolectric_repository_extensions") +use_repo( + robolectric_repository_extensions, + "org_robolectric_android_all_instrumented_10_robolectric_5803371_i6", + "org_robolectric_android_all_instrumented_11_robolectric_6757853_i6", + "org_robolectric_android_all_instrumented_12_1_robolectric_8229987_i6", + "org_robolectric_android_all_instrumented_12_robolectric_7732740_i6", + "org_robolectric_android_all_instrumented_13_robolectric_9030017_i6", + "org_robolectric_android_all_instrumented_14_robolectric_10818077_i6", + "org_robolectric_android_all_instrumented_4_4_r1_robolectric_r2_i6", + "org_robolectric_android_all_instrumented_5_0_2_r3_robolectric_r0_i6", + "org_robolectric_android_all_instrumented_5_1_1_r9_robolectric_r2_i6", + "org_robolectric_android_all_instrumented_6_0_1_r3_robolectric_r1_i6", + "org_robolectric_android_all_instrumented_7_0_0_r1_robolectric_r1_i6", + "org_robolectric_android_all_instrumented_7_1_0_r7_robolectric_r1_i6", + "org_robolectric_android_all_instrumented_8_0_0_r4_robolectric_r1_i6", + "org_robolectric_android_all_instrumented_8_1_0_robolectric_4611349_i6", + "org_robolectric_android_all_instrumented_9_robolectric_4913185_2_i6", +) + +bazel_dep(name = "rules_java", version = "7.0.6") + +bazel_dep(name = "bazel_skylib", version = "1.4.2", dev_dependency = True) +bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True) diff --git a/modules/rules_robolectric/4.12.2/patches/module_dot_bazel_version.patch b/modules/rules_robolectric/4.12.2/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..f10498db20b --- /dev/null +++ b/modules/rules_robolectric/4.12.2/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -2,9 +2,9 @@ + + module( + name = "rules_robolectric", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. +- version = "0.0.0", ++ version = "4.12.2", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/rules_robolectric/4.12.2/presubmit.yml b/modules/rules_robolectric/4.12.2/presubmit.yml new file mode 100644 index 00000000000..28e80311112 --- /dev/null +++ b/modules/rules_robolectric/4.12.2/presubmit.yml @@ -0,0 +1,11 @@ +matrix: + platform: ["macos", "ubuntu2004"] + bazel: ["6.x", "7.x"] + +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_robolectric//bazel:android-all" diff --git a/modules/rules_robolectric/4.12.2/source.json b/modules/rules_robolectric/4.12.2/source.json new file mode 100644 index 00000000000..85d3d6b6527 --- /dev/null +++ b/modules/rules_robolectric/4.12.2/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-97jgjyRvKfJv3dl7erXfoBqqYXDMwkubaiGTG94BrW8=", + "strip_prefix": "robolectric-bazel-4.12.2", + "url": "https://github.com/robolectric/robolectric-bazel/releases/download/4.12.2/robolectric-bazel-4.12.2.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-7hgdDPhQhnVH3aDjHhgCtlQABh3adpn+oA7X12Hw4ec=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_robolectric/metadata.json b/modules/rules_robolectric/metadata.json index 750280bee6e..fd54538af90 100644 --- a/modules/rules_robolectric/metadata.json +++ b/modules/rules_robolectric/metadata.json @@ -18,7 +18,8 @@ "4.11", "4.11.1", "4.12", - "4.12.1" + "4.12.1", + "4.12.2" ], "yanked_versions": {} } From 1d9153e54b05f0f61e6d01f1efab952f9a59a391 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:19:54 -0700 Subject: [PATCH 41/52] rules_uv@0.18.0 (#2386) Release: https://github.com/theoremlp/rules_uv/releases/tag/v0.18.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Mark Elliot <123787712+mark-thm@users.noreply.github.com> --- modules/rules_uv/0.18.0/MODULE.bazel | 16 ++++++++++++++++ modules/rules_uv/0.18.0/presubmit.yml | 15 +++++++++++++++ modules/rules_uv/0.18.0/source.json | 5 +++++ modules/rules_uv/metadata.json | 3 ++- 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 modules/rules_uv/0.18.0/MODULE.bazel create mode 100644 modules/rules_uv/0.18.0/presubmit.yml create mode 100644 modules/rules_uv/0.18.0/source.json diff --git a/modules/rules_uv/0.18.0/MODULE.bazel b/modules/rules_uv/0.18.0/MODULE.bazel new file mode 100644 index 00000000000..15178889ff7 --- /dev/null +++ b/modules/rules_uv/0.18.0/MODULE.bazel @@ -0,0 +1,16 @@ +"rules_uv" + +module( + name = "rules_uv", + version = "0.18.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "buildifier_prebuilt", version = "6.1.2") +bazel_dep(name = "platforms", version = "0.0.8") +bazel_dep(name = "rules_multitool", version = "0.4.0") + +multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool") +multitool.hub(lockfile = "//uv/private:uv.lock.json") +use_repo(multitool, "multitool") diff --git a/modules/rules_uv/0.18.0/presubmit.yml b/modules/rules_uv/0.18.0/presubmit.yml new file mode 100644 index 00000000000..3a2a60fd70a --- /dev/null +++ b/modules/rules_uv/0.18.0/presubmit.yml @@ -0,0 +1,15 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + bazel: + - 7.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_uv//..." diff --git a/modules/rules_uv/0.18.0/source.json b/modules/rules_uv/0.18.0/source.json new file mode 100644 index 00000000000..ea8f31133bd --- /dev/null +++ b/modules/rules_uv/0.18.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-dvRZUesm6v9sIVaGRPWrbqaTk+q9Sen7KYr0mFg0AhU=", + "strip_prefix": "rules_uv-0.18.0", + "url": "https://github.com/theoremlp/rules_uv/releases/download/v0.18.0/rules_uv-0.18.0.tar.gz" +} diff --git a/modules/rules_uv/metadata.json b/modules/rules_uv/metadata.json index bde59c01337..045e29a1dc8 100644 --- a/modules/rules_uv/metadata.json +++ b/modules/rules_uv/metadata.json @@ -33,7 +33,8 @@ "0.14.0", "0.15.0", "0.16.0", - "0.17.0" + "0.17.0", + "0.18.0" ], "yanked_versions": {} } From 58e0fdb589c1ed303fdc85e66eaf3709e5df8e67 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:20:33 -0700 Subject: [PATCH 42/52] rules_robolectric@4.13 (#2396) Release: https://github.com/robolectric/robolectric-bazel/releases/tag/4.13 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Ben Lee --- modules/rules_robolectric/4.13/MODULE.bazel | 34 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++ modules/rules_robolectric/4.13/presubmit.yml | 11 ++++++ modules/rules_robolectric/4.13/source.json | 9 +++++ modules/rules_robolectric/metadata.json | 3 +- 5 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 modules/rules_robolectric/4.13/MODULE.bazel create mode 100644 modules/rules_robolectric/4.13/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_robolectric/4.13/presubmit.yml create mode 100644 modules/rules_robolectric/4.13/source.json diff --git a/modules/rules_robolectric/4.13/MODULE.bazel b/modules/rules_robolectric/4.13/MODULE.bazel new file mode 100644 index 00000000000..623aa46562f --- /dev/null +++ b/modules/rules_robolectric/4.13/MODULE.bazel @@ -0,0 +1,34 @@ +"Bazel dependencies" + +module( + name = "rules_robolectric", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. + version = "4.13", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, +) + +robolectric_repository_extensions = use_extension("//bazel:extensions.bzl", "robolectric_repository_extensions") +use_repo( + robolectric_repository_extensions, + "org_robolectric_android_all_instrumented_10_robolectric_5803371_i6", + "org_robolectric_android_all_instrumented_11_robolectric_6757853_i6", + "org_robolectric_android_all_instrumented_12_1_robolectric_8229987_i6", + "org_robolectric_android_all_instrumented_12_robolectric_7732740_i6", + "org_robolectric_android_all_instrumented_13_robolectric_9030017_i6", + "org_robolectric_android_all_instrumented_14_robolectric_10818077_i6", + "org_robolectric_android_all_instrumented_4_4_r1_robolectric_r2_i6", + "org_robolectric_android_all_instrumented_5_0_2_r3_robolectric_r0_i6", + "org_robolectric_android_all_instrumented_5_1_1_r9_robolectric_r2_i6", + "org_robolectric_android_all_instrumented_6_0_1_r3_robolectric_r1_i6", + "org_robolectric_android_all_instrumented_7_0_0_r1_robolectric_r1_i6", + "org_robolectric_android_all_instrumented_7_1_0_r7_robolectric_r1_i6", + "org_robolectric_android_all_instrumented_8_0_0_r4_robolectric_r1_i6", + "org_robolectric_android_all_instrumented_8_1_0_robolectric_4611349_i6", + "org_robolectric_android_all_instrumented_9_robolectric_4913185_2_i6", +) + +bazel_dep(name = "rules_java", version = "7.0.6") +bazel_dep(name = "bazel_skylib", version = "1.6.1") + +bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) diff --git a/modules/rules_robolectric/4.13/patches/module_dot_bazel_version.patch b/modules/rules_robolectric/4.13/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..43a9d8040d7 --- /dev/null +++ b/modules/rules_robolectric/4.13/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -2,9 +2,9 @@ + + module( + name = "rules_robolectric", + # Note: the publish-to-BCR app will patch this line to stamp the version being published. +- version = "0.0.0", ++ version = "4.13", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + ) + diff --git a/modules/rules_robolectric/4.13/presubmit.yml b/modules/rules_robolectric/4.13/presubmit.yml new file mode 100644 index 00000000000..28e80311112 --- /dev/null +++ b/modules/rules_robolectric/4.13/presubmit.yml @@ -0,0 +1,11 @@ +matrix: + platform: ["macos", "ubuntu2004"] + bazel: ["6.x", "7.x"] + +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "@rules_robolectric//bazel:android-all" diff --git a/modules/rules_robolectric/4.13/source.json b/modules/rules_robolectric/4.13/source.json new file mode 100644 index 00000000000..53eb51395ba --- /dev/null +++ b/modules/rules_robolectric/4.13/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-onD9b9g/nwJGI+eHaW5rc8RGZLfJXz2TftNb8KlKZ64=", + "strip_prefix": "robolectric-bazel-4.13", + "url": "https://github.com/robolectric/robolectric-bazel/releases/download/4.13/robolectric-bazel-4.13.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-6CiMpIBxchdc0NiHD254gsNlslI3b22qG6vWoslNpHM=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_robolectric/metadata.json b/modules/rules_robolectric/metadata.json index fd54538af90..bf8120f8de4 100644 --- a/modules/rules_robolectric/metadata.json +++ b/modules/rules_robolectric/metadata.json @@ -19,7 +19,8 @@ "4.11.1", "4.12", "4.12.1", - "4.12.2" + "4.12.2", + "4.13" ], "yanked_versions": {} } From aec57ab1dd1f2a44611c7bb762042fc6bc0620a4 Mon Sep 17 00:00:00 2001 From: Ziad Shaban Date: Wed, 10 Jul 2024 01:37:15 +0200 Subject: [PATCH 43/52] add gsl to bcr (#2385) added gsl to bcr --------- Co-authored-by: ziad-fernride --- modules/gsl/4.0.0/MODULE.bazel | 5 ++++ .../gsl/4.0.0/patches/build_dot_bazel.patch | 25 +++++++++++++++++++ .../gsl/4.0.0/patches/module_dot_bazel.patch | 8 ++++++ modules/gsl/4.0.0/presubmit.yml | 11 ++++++++ modules/gsl/4.0.0/source.json | 10 ++++++++ modules/gsl/metadata.json | 15 +++++++++++ 6 files changed, 74 insertions(+) create mode 100644 modules/gsl/4.0.0/MODULE.bazel create mode 100644 modules/gsl/4.0.0/patches/build_dot_bazel.patch create mode 100644 modules/gsl/4.0.0/patches/module_dot_bazel.patch create mode 100644 modules/gsl/4.0.0/presubmit.yml create mode 100644 modules/gsl/4.0.0/source.json create mode 100644 modules/gsl/metadata.json diff --git a/modules/gsl/4.0.0/MODULE.bazel b/modules/gsl/4.0.0/MODULE.bazel new file mode 100644 index 00000000000..01c788b34ad --- /dev/null +++ b/modules/gsl/4.0.0/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "gsl", + version = "4.0.0", + compatibility_level = 4, +) diff --git a/modules/gsl/4.0.0/patches/build_dot_bazel.patch b/modules/gsl/4.0.0/patches/build_dot_bazel.patch new file mode 100644 index 00000000000..958b10e08f6 --- /dev/null +++ b/modules/gsl/4.0.0/patches/build_dot_bazel.patch @@ -0,0 +1,25 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,22 @@ ++cc_library( ++ name = "gsl", ++ hdrs = [ ++ "gsl/algorithm", ++ "gsl/assert", ++ "gsl/byte", ++ "gsl/gsl", ++ "gsl/gsl_algorithm", ++ "gsl/gsl_assert", ++ "gsl/gsl_byte", ++ "gsl/gsl_narrow", ++ "gsl/gsl_util", ++ "gsl/narrow", ++ "gsl/pointers", ++ "gsl/span", ++ "gsl/span_ext", ++ "gsl/string_span", ++ "gsl/util", ++ ], ++ includes = ["."], ++ visibility = ["//visibility:public"], ++) diff --git a/modules/gsl/4.0.0/patches/module_dot_bazel.patch b/modules/gsl/4.0.0/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..8fa14c32bae --- /dev/null +++ b/modules/gsl/4.0.0/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- /dev/null ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "gsl", ++ version = "4.0.0", ++ compatibility_level = 4, ++) diff --git a/modules/gsl/4.0.0/presubmit.yml b/modules/gsl/4.0.0/presubmit.yml new file mode 100644 index 00000000000..9ac563c1247 --- /dev/null +++ b/modules/gsl/4.0.0/presubmit.yml @@ -0,0 +1,11 @@ +matrix: + bazel: ["6.x", "7.x"] + platform: ["debian10", "macos", "macos_arm64", "ubuntu2004", "windows"] + +tasks: + verify_targets: + name: Verify build targets + bazel: ${{ bazel }} + platform: ${{ platform }} + build_targets: + - '@gsl//:gsl' diff --git a/modules/gsl/4.0.0/source.json b/modules/gsl/4.0.0/source.json new file mode 100644 index 00000000000..69949d726f2 --- /dev/null +++ b/modules/gsl/4.0.0/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-65H8sQpqpcyx0iTgelbI7P/pobtgH6GEgnbsRqIgC/s=", + "patches": { + "build_dot_bazel.patch": "sha256-3liG34A3S/xTIz/NlV1JbBs0sM+IZzXiXOsTnHiTlKo=", + "module_dot_bazel.patch": "sha256-I5KhvDC32BRXw0A8KKVQ4MTaSFRWPo7Nhiy/bxy7Oic=" + }, + "strip_prefix": "GSL-4.0.0/include", + "patch_strip": 0, + "url": "https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip" +} diff --git a/modules/gsl/metadata.json b/modules/gsl/metadata.json new file mode 100644 index 00000000000..07f58fe45bf --- /dev/null +++ b/modules/gsl/metadata.json @@ -0,0 +1,15 @@ +{ + "homepage": "https://github.com/microsoft/GSL", + "maintainers": [ + { + "email": "shaban_ziad@hotmail.com", + "github": "shabanzd", + "name": "Ziad Shaban" + } + ], + "repository": [ + "https://github.com/microsoft/GSL" + ], + "versions": ["4.0.0"], + "yanked_versions": {} +} From 84de2f7924f49ec9c4e631590520a235c055f6b6 Mon Sep 17 00:00:00 2001 From: Ziad Shaban Date: Wed, 10 Jul 2024 01:41:59 +0200 Subject: [PATCH 44/52] add earcut to BCR (#2383) added the earcut cpp dep to BCR --------- Co-authored-by: ziad-fernride --- modules/earcut/2.2.4/MODULE.bazel | 5 +++++ .../earcut/2.2.4/patches/build_dot_bazel.patch | 10 ++++++++++ .../earcut/2.2.4/patches/module_dot_bazel.patch | 8 ++++++++ modules/earcut/2.2.4/presubmit.yml | 11 +++++++++++ modules/earcut/2.2.4/source.json | 10 ++++++++++ modules/earcut/metadata.json | 15 +++++++++++++++ 6 files changed, 59 insertions(+) create mode 100644 modules/earcut/2.2.4/MODULE.bazel create mode 100644 modules/earcut/2.2.4/patches/build_dot_bazel.patch create mode 100644 modules/earcut/2.2.4/patches/module_dot_bazel.patch create mode 100644 modules/earcut/2.2.4/presubmit.yml create mode 100644 modules/earcut/2.2.4/source.json create mode 100644 modules/earcut/metadata.json diff --git a/modules/earcut/2.2.4/MODULE.bazel b/modules/earcut/2.2.4/MODULE.bazel new file mode 100644 index 00000000000..f9fb1863f32 --- /dev/null +++ b/modules/earcut/2.2.4/MODULE.bazel @@ -0,0 +1,5 @@ +module( + name = "earcut", + version = "2.2.4", + compatibility_level = 2, +) diff --git a/modules/earcut/2.2.4/patches/build_dot_bazel.patch b/modules/earcut/2.2.4/patches/build_dot_bazel.patch new file mode 100644 index 00000000000..ce46aa3e32c --- /dev/null +++ b/modules/earcut/2.2.4/patches/build_dot_bazel.patch @@ -0,0 +1,10 @@ +--- /dev/null ++++ BUILD.bazel +@@ -0,0 +1,7 @@ ++package(default_visibility = ["//visibility:public"]) ++ ++cc_library( ++ name = "earcut", ++ hdrs = ["include/mapbox/earcut.hpp"], ++ strip_include_prefix = "include/mapbox", ++) diff --git a/modules/earcut/2.2.4/patches/module_dot_bazel.patch b/modules/earcut/2.2.4/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..0c90cfb8089 --- /dev/null +++ b/modules/earcut/2.2.4/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- /dev/null ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "earcut", ++ version = "2.2.4", ++ compatibility_level = 2, ++) diff --git a/modules/earcut/2.2.4/presubmit.yml b/modules/earcut/2.2.4/presubmit.yml new file mode 100644 index 00000000000..12c364051f0 --- /dev/null +++ b/modules/earcut/2.2.4/presubmit.yml @@ -0,0 +1,11 @@ +matrix: + bazel: ["6.x", "7.x"] + platform: ["debian10", "macos", "macos_arm64", "ubuntu2004", "windows"] + +tasks: + verify_targets: + name: Verify build targets + bazel: ${{ bazel }} + platform: ${{ platform }} + build_targets: + - '@earcut//:earcut' diff --git a/modules/earcut/2.2.4/source.json b/modules/earcut/2.2.4/source.json new file mode 100644 index 00000000000..a20284ffe70 --- /dev/null +++ b/modules/earcut/2.2.4/source.json @@ -0,0 +1,10 @@ +{ + "integrity": "sha256-/PpqR6UtTJTclgvbdH8X4HdgkjVRewu1zoCX1rdHaVo=", + "patch_strip": 0, + "patches": { + "build_dot_bazel.patch": "sha256-zL81MX2I23IFPheCBOxGJodROgLfYspapZTvQKse72g=", + "module_dot_bazel.patch": "sha256-8ALtnH924elDl8U4ZLwPO6lxDxLnX9xilCMvwo4ZxeU=" + }, + "strip_prefix": "earcut.hpp-2.2.4", + "url": "https://github.com/mapbox/earcut.hpp/archive/refs/tags/v2.2.4.tar.gz" +} diff --git a/modules/earcut/metadata.json b/modules/earcut/metadata.json new file mode 100644 index 00000000000..a056bca576d --- /dev/null +++ b/modules/earcut/metadata.json @@ -0,0 +1,15 @@ +{ + "homepage": "https://github.com/mapbox/earcut.hpp", + "maintainers": [ + { + "email": "shaban_ziad@hotmail.com", + "github": "shabanzd", + "name": "Ziad Shaban" + } + ], + "repository": [ + "https://github.com/mapbox/earcut.hpp" + ], + "versions": ["2.2.4"], + "yanked_versions": {} +} From 96fef0f6f7ad13b27d0bb01a55f02fb168061322 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 01:46:03 +0000 Subject: [PATCH 45/52] apple_support@1.16.0 (#2399) Release: https://github.com/bazelbuild/apple_support/releases/tag/1.16.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Patrick Balestra --- modules/apple_support/1.16.0/MODULE.bazel | 23 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++++++++ modules/apple_support/1.16.0/presubmit.yml | 22 ++++++++++++++++++ modules/apple_support/1.16.0/source.json | 9 ++++++++ modules/apple_support/metadata.json | 3 ++- 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 modules/apple_support/1.16.0/MODULE.bazel create mode 100644 modules/apple_support/1.16.0/patches/module_dot_bazel_version.patch create mode 100644 modules/apple_support/1.16.0/presubmit.yml create mode 100644 modules/apple_support/1.16.0/source.json diff --git a/modules/apple_support/1.16.0/MODULE.bazel b/modules/apple_support/1.16.0/MODULE.bazel new file mode 100644 index 00000000000..37052de37c5 --- /dev/null +++ b/modules/apple_support/1.16.0/MODULE.bazel @@ -0,0 +1,23 @@ +module( + name = "apple_support", + version = "1.16.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + repo_name = "build_bazel_apple_support", +) + +bazel_dep(name = "bazel_features", version = "1.10.0") +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "platforms", version = "0.0.9") + +bazel_dep( + name = "stardoc", + version = "0.6.2", + dev_dependency = True, + repo_name = "io_bazel_stardoc", +) + +apple_cc_configure = use_extension("//crosstool:setup.bzl", "apple_cc_configure_extension") +use_repo(apple_cc_configure, "local_config_apple_cc", "local_config_apple_cc_toolchains") + +register_toolchains("@local_config_apple_cc_toolchains//:all") diff --git a/modules/apple_support/1.16.0/patches/module_dot_bazel_version.patch b/modules/apple_support/1.16.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..0cf826c773d --- /dev/null +++ b/modules/apple_support/1.16.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "apple_support", +- version = "0", ++ version = "1.16.0", + bazel_compatibility = [">=6.0.0"], + compatibility_level = 1, + repo_name = "build_bazel_apple_support", + ) diff --git a/modules/apple_support/1.16.0/presubmit.yml b/modules/apple_support/1.16.0/presubmit.yml new file mode 100644 index 00000000000..e598bc4291c --- /dev/null +++ b/modules/apple_support/1.16.0/presubmit.yml @@ -0,0 +1,22 @@ +matrix: + bazel: ["7.x", "rolling"] + +tasks: + verify_targets: + name: "Build targets under //lib" + platform: ubuntu2004 + bazel: ${{ bazel }} + build_targets: + - '@apple_support//lib/...' + run_tests: + name: "Run test targets" + platform: "macos_arm64" + bazel: ${{ bazel }} + build_targets: + - '@apple_support//lib/...' + test_targets: + - '@apple_support//test/...' + - '--' + # Needs visionOS SDK + - '-@apple_support//test:binary_visionos_arm64_simulator_test' + - '-@apple_support//test:binary_visionos_device_test' diff --git a/modules/apple_support/1.16.0/source.json b/modules/apple_support/1.16.0/source.json new file mode 100644 index 00000000000..302cb66f2e9 --- /dev/null +++ b/modules/apple_support/1.16.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-wxzo5TG1DvEzg5LuKd09s2iWaHAewyN7nGHiahk3qwc=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/apple_support/releases/download/1.16.0/apple_support.1.16.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-T2PMrL6Gg5lmiSIAFUDqU9SgDLcMo9WZ7+M3Uuw9Law=" + }, + "patch_strip": 1 +} diff --git a/modules/apple_support/metadata.json b/modules/apple_support/metadata.json index fe40886a71c..aa49ad40a18 100644 --- a/modules/apple_support/metadata.json +++ b/modules/apple_support/metadata.json @@ -37,7 +37,8 @@ "1.12.0", "1.13.0", "1.14.0", - "1.15.1" + "1.15.1", + "1.16.0" ], "yanked_versions": {} } From fb5f690e26b3cccb4a28bc7a89fb7d218caf14af Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius <240938+aignas@users.noreply.github.com> Date: Wed, 10 Jul 2024 16:09:24 +0900 Subject: [PATCH 46/52] chore: add aignas to rules_python maintainer list (#2401) I've been doing about half the maintenance on rules_python, including initiating releases and following up on BCR PRs for it. --- modules/rules_python/metadata.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/rules_python/metadata.json b/modules/rules_python/metadata.json index f3c50e46dbb..045c7ac72d9 100644 --- a/modules/rules_python/metadata.json +++ b/modules/rules_python/metadata.json @@ -10,6 +10,11 @@ "name": "Thulio Ferraz Assis", "email": "thulio@aspect.dev", "github": "f0rmiga" + }, + { + "name": "Ignas Anikevicius", + "email": "bcr-ignas@use.startmail.com", + "github": "aignas" } ], "repository": [ From a8acfe91b072685a20d1d6b867ee23be5996a2b1 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:57:10 +0200 Subject: [PATCH 47/52] rules_python@0.34.0 (#2360) Release: https://github.com/bazelbuild/rules_python/releases/tag/0.34.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com> --- modules/rules_python/0.34.0/MODULE.bazel | 132 ++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++ modules/rules_python/0.34.0/presubmit.yml | 26 ++++ modules/rules_python/0.34.0/source.json | 9 ++ modules/rules_python/metadata.json | 3 +- 5 files changed, 181 insertions(+), 1 deletion(-) create mode 100644 modules/rules_python/0.34.0/MODULE.bazel create mode 100644 modules/rules_python/0.34.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_python/0.34.0/presubmit.yml create mode 100644 modules/rules_python/0.34.0/source.json diff --git a/modules/rules_python/0.34.0/MODULE.bazel b/modules/rules_python/0.34.0/MODULE.bazel new file mode 100644 index 00000000000..304f3b92dde --- /dev/null +++ b/modules/rules_python/0.34.0/MODULE.bazel @@ -0,0 +1,132 @@ +module( + name = "rules_python", + version = "0.34.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_features", version = "1.9.1") +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "rules_cc", version = "0.0.9") +bazel_dep(name = "platforms", version = "0.0.4") + +# Those are loaded only when using py_proto_library +bazel_dep(name = "rules_proto", version = "6.0.0-rc1") +bazel_dep(name = "protobuf", version = "24.4", repo_name = "com_google_protobuf") + +internal_deps = use_extension("//python/private:internal_deps.bzl", "internal_deps") +use_repo( + internal_deps, + "pypi__build", + "pypi__click", + "pypi__colorama", + "pypi__importlib_metadata", + "pypi__installer", + "pypi__more_itertools", + "pypi__packaging", + "pypi__pep517", + "pypi__pip", + "pypi__pip_tools", + "pypi__pyproject_hooks", + "pypi__setuptools", + "pypi__tomli", + "pypi__wheel", + "pypi__zipp", + "rules_python_internal", +) + +# We need to do another use_extension call to expose the "pythons_hub" +# repo. +python = use_extension("//python/extensions:python.bzl", "python") + +# The default toolchain to use if nobody configures a toolchain. +# NOTE: This is not a stable version. It is provided for convenience, but will +# change frequently to track the most recent Python version. +# NOTE: The root module can override this. +python.toolchain( + is_default = True, + python_version = "3.11", +) +use_repo(python, "python_3_11", "python_versions", "pythons_hub") + +# This call registers the Python toolchains. +register_toolchains("@pythons_hub//:all") + +##################### +# Install twine for our own runfiles wheel publishing and allow bzlmod users to use it. + +pip = use_extension("//python/private/pypi:pip.bzl", "pip_internal") +pip.parse( + hub_name = "rules_python_publish_deps", + python_version = "3.11", + requirements_by_platform = { + "//tools/publish:requirements.txt": "linux_*", + "//tools/publish:requirements_darwin.txt": "osx_*", + "//tools/publish:requirements_windows.txt": "windows_*", + }, +) +use_repo(pip, "rules_python_publish_deps") + +# ===== DEV ONLY DEPS AND SETUP BELOW HERE ===== +bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc") +bazel_dep(name = "rules_bazel_integration_test", version = "0.20.0", dev_dependency = True) +bazel_dep(name = "rules_testing", version = "0.6.0", dev_dependency = True) + +# Extra gazelle plugin deps so that WORKSPACE.bzlmod can continue including it for e2e tests. +# We use `WORKSPACE.bzlmod` because it is impossible to have dev-only local overrides. +bazel_dep(name = "rules_go", version = "0.41.0", dev_dependency = True, repo_name = "io_bazel_rules_go") +bazel_dep(name = "gazelle", version = "0.33.0", dev_dependency = True, repo_name = "bazel_gazelle") + +dev_pip = use_extension( + "//python/private/pypi:pip.bzl", + "pip_internal", + dev_dependency = True, +) +dev_pip.parse( + experimental_requirement_cycles = { + "sphinx": [ + "sphinx", + "sphinxcontrib-serializinghtml", + "sphinxcontrib-qthelp", + "sphinxcontrib-htmlhelp", + "sphinxcontrib-devhelp", + "sphinxcontrib-applehelp", + ], + }, + hub_name = "dev_pip", + python_version = "3.11", + requirements_by_platform = { + "//docs/sphinx:requirements.txt": "linux_*,osx_*", + }, +) +dev_pip.parse( + hub_name = "pypiserver", + python_version = "3.11", + requirements_lock = "//examples/wheel:requirements_server.txt", +) +use_repo(dev_pip, "dev_pip", "pypiserver") + +# Bazel integration test setup below + +bazel_binaries = use_extension( + "@rules_bazel_integration_test//:extensions.bzl", + "bazel_binaries", + dev_dependency = True, +) + +# Keep in sync with //:version.bzl +bazel_binaries.local( + name = "self", + path = "tests/integration/bazel_from_env", +) +bazel_binaries.download(version = "6.4.0") +bazel_binaries.download(version = "rolling") +use_repo( + bazel_binaries, + "bazel_binaries", + # These don't appear necessary, but are reported as direct dependencies + # that should be use_repo()'d, so we add them as requested + "bazel_binaries_bazelisk", + "build_bazel_bazel_6_4_0", + "build_bazel_bazel_rolling", + "build_bazel_bazel_self", +) diff --git a/modules/rules_python/0.34.0/patches/module_dot_bazel_version.patch b/modules/rules_python/0.34.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..2327a164c0f --- /dev/null +++ b/modules/rules_python/0.34.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_python", +- version = "0.0.0", ++ version = "0.34.0", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_features", version = "1.9.1") diff --git a/modules/rules_python/0.34.0/presubmit.yml b/modules/rules_python/0.34.0/presubmit.yml new file mode 100644 index 00000000000..6be334ebfe9 --- /dev/null +++ b/modules/rules_python/0.34.0/presubmit.yml @@ -0,0 +1,26 @@ +# Copyright 2023 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +bcr_test_module: + module_path: "examples/bzlmod" + matrix: + platform: ["debian11", "macos", "ubuntu2004", "windows"] + bazel: [6.x, 7.x] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//..." diff --git a/modules/rules_python/0.34.0/source.json b/modules/rules_python/0.34.0/source.json new file mode 100644 index 00000000000..ff32f7b6e97 --- /dev/null +++ b/modules/rules_python/0.34.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-d4quqz5s/VbWgcifXBDXrWv40vGnLeneVbIwgbLTFhg=", + "strip_prefix": "rules_python-0.34.0", + "url": "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-9Hwgtvb4RwCw/H1tVHuzJFpDSLvbPWD0dw4elwjeHQM=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_python/metadata.json b/modules/rules_python/metadata.json index 045c7ac72d9..63e15d9de95 100644 --- a/modules/rules_python/metadata.json +++ b/modules/rules_python/metadata.json @@ -53,7 +53,8 @@ "0.32.2", "0.33.0", "0.33.1", - "0.33.2" + "0.33.2", + "0.34.0" ], "yanked_versions": { "0.14.0": "rules_python 0.14.0 is broken due to https://github.com/bazelbuild/bazel-central-registry/issues/287, please upgrade to version >= 0.15.0" From 1d145e17c159ecffb147422b7fac830dcf45de69 Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 12:11:43 +0200 Subject: [PATCH 48/52] rules_python_gazelle_plugin@0.34.0 (#2361) Release: https://github.com/bazelbuild/rules_python/releases/tag/0.34.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com> --- .../0.34.0/MODULE.bazel | 39 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++++ .../0.34.0/presubmit.yml | 29 ++++++++++++++ .../0.34.0/source.json | 9 +++++ .../rules_python_gazelle_plugin/metadata.json | 3 +- 5 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 modules/rules_python_gazelle_plugin/0.34.0/MODULE.bazel create mode 100644 modules/rules_python_gazelle_plugin/0.34.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_python_gazelle_plugin/0.34.0/presubmit.yml create mode 100644 modules/rules_python_gazelle_plugin/0.34.0/source.json diff --git a/modules/rules_python_gazelle_plugin/0.34.0/MODULE.bazel b/modules/rules_python_gazelle_plugin/0.34.0/MODULE.bazel new file mode 100644 index 00000000000..cd72e7624d9 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.34.0/MODULE.bazel @@ -0,0 +1,39 @@ +module( + name = "rules_python_gazelle_plugin", + version = "0.34.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "rules_python", version = "0.18.0") +bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "gazelle", version = "0.33.0", repo_name = "bazel_gazelle") + +local_path_override( + module_name = "rules_python", + path = "..", +) + +go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bazelbuild_buildtools", + "com_github_bmatcuk_doublestar_v4", + "com_github_emirpasic_gods", + "com_github_ghodss_yaml", + "com_github_smacker_go_tree_sitter", + "com_github_stretchr_testify", + "in_gopkg_yaml_v2", + "org_golang_x_sync", +) + +python_stdlib_list = use_extension("//python:extensions.bzl", "python_stdlib_list") +use_repo( + python_stdlib_list, + "python_stdlib_list_3_10", + "python_stdlib_list_3_11", + "python_stdlib_list_3_12", + "python_stdlib_list_3_8", + "python_stdlib_list_3_9", +) diff --git a/modules/rules_python_gazelle_plugin/0.34.0/patches/module_dot_bazel_version.patch b/modules/rules_python_gazelle_plugin/0.34.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..777f40b2505 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.34.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_python_gazelle_plugin", +- version = "0.0.0", ++ version = "0.34.0", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.6.1") diff --git a/modules/rules_python_gazelle_plugin/0.34.0/presubmit.yml b/modules/rules_python_gazelle_plugin/0.34.0/presubmit.yml new file mode 100644 index 00000000000..659beab5256 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.34.0/presubmit.yml @@ -0,0 +1,29 @@ +# Copyright 2023 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +bcr_test_module: + module_path: "../examples/bzlmod_build_file_generation" + matrix: + platform: ["debian11", "macos", "ubuntu2004", "windows"] + bazel: [6.x, 7.x] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "//..." + - ":modules_map" + test_targets: + - "//..." diff --git a/modules/rules_python_gazelle_plugin/0.34.0/source.json b/modules/rules_python_gazelle_plugin/0.34.0/source.json new file mode 100644 index 00000000000..986fb36e244 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.34.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-d4quqz5s/VbWgcifXBDXrWv40vGnLeneVbIwgbLTFhg=", + "strip_prefix": "rules_python-0.34.0/gazelle", + "url": "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-8NfQ7pebdMif7e8vvAcEcFNTcwmt/g15cfv6o74tbIg=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_python_gazelle_plugin/metadata.json b/modules/rules_python_gazelle_plugin/metadata.json index 085332502cb..c87564eac62 100644 --- a/modules/rules_python_gazelle_plugin/metadata.json +++ b/modules/rules_python_gazelle_plugin/metadata.json @@ -31,7 +31,8 @@ "0.32.2", "0.33.0", "0.33.1", - "0.33.2" + "0.33.2", + "0.34.0" ], "yanked_versions": {} } From 8bc3e3b3c27f85644f30b5bef2aac550d5bbc384 Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Mon, 1 Jul 2024 16:21:25 +0000 Subject: [PATCH 49/52] add open62541 to BCR --- modules/open62541/1.4.1/BUILD.bazel | 10 ++++++++++ modules/open62541/1.4.1/MODULE.bazel | 4 ++++ .../1.4.1/patches/add_build_file.patch | 17 +++++++++++++++++ .../1.4.1/patches/module_dot_bazel.patch | 8 ++++++++ modules/open62541/1.4.1/presubmit.yml | 14 ++++++++++++++ modules/open62541/1.4.1/source.json | 10 ++++++++++ modules/open62541/metadata.json | 16 ++++++++++++++++ 7 files changed, 79 insertions(+) create mode 100644 modules/open62541/1.4.1/BUILD.bazel create mode 100644 modules/open62541/1.4.1/MODULE.bazel create mode 100644 modules/open62541/1.4.1/patches/add_build_file.patch create mode 100644 modules/open62541/1.4.1/patches/module_dot_bazel.patch create mode 100644 modules/open62541/1.4.1/presubmit.yml create mode 100644 modules/open62541/1.4.1/source.json create mode 100644 modules/open62541/metadata.json diff --git a/modules/open62541/1.4.1/BUILD.bazel b/modules/open62541/1.4.1/BUILD.bazel new file mode 100644 index 00000000000..f421d34fa24 --- /dev/null +++ b/modules/open62541/1.4.1/BUILD.bazel @@ -0,0 +1,10 @@ +cc_library( + name = "open62541", + srcs = ["lib/libopen62541.a"], + hdrs = glob([ + "include/open62541/*.h", + "include/open62541/plugin/*.h", + ]), + strip_include_prefix = "include", + visibility = ["//visibility:public"], +) \ No newline at end of file diff --git a/modules/open62541/1.4.1/MODULE.bazel b/modules/open62541/1.4.1/MODULE.bazel new file mode 100644 index 00000000000..f0b9d1a851c --- /dev/null +++ b/modules/open62541/1.4.1/MODULE.bazel @@ -0,0 +1,4 @@ +module( + name = "open62541", + version = "1.4.1", +) diff --git a/modules/open62541/1.4.1/patches/add_build_file.patch b/modules/open62541/1.4.1/patches/add_build_file.patch new file mode 100644 index 00000000000..2e8f8210c04 --- /dev/null +++ b/modules/open62541/1.4.1/patches/add_build_file.patch @@ -0,0 +1,17 @@ +diff --git /dev/null BUILD.bazel +new file mode 100644 +index 00000000..f421d34f +--- /dev/null ++++ b/BUILD.bazel +@@ -0,0 +1,10 @@ ++cc_library( ++ name = "open62541", ++ srcs = ["lib/libopen62541.a"], ++ hdrs = glob([ ++ "include/open62541/*.h", ++ "include/open62541/plugin/*.h", ++ ]), ++ strip_include_prefix = "include", ++ visibility = ["//visibility:public"], ++) +\ No newline at end of file diff --git a/modules/open62541/1.4.1/patches/module_dot_bazel.patch b/modules/open62541/1.4.1/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..9e633800515 --- /dev/null +++ b/modules/open62541/1.4.1/patches/module_dot_bazel.patch @@ -0,0 +1,8 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,5 @@ ++module( ++ name = "open62541", ++ version = "1.4.1", ++ compatibility_level = 0, ++) diff --git a/modules/open62541/1.4.1/presubmit.yml b/modules/open62541/1.4.1/presubmit.yml new file mode 100644 index 00000000000..622c3f66d25 --- /dev/null +++ b/modules/open62541/1.4.1/presubmit.yml @@ -0,0 +1,14 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@open62541:*' diff --git a/modules/open62541/1.4.1/source.json b/modules/open62541/1.4.1/source.json new file mode 100644 index 00000000000..c2829bc9647 --- /dev/null +++ b/modules/open62541/1.4.1/source.json @@ -0,0 +1,10 @@ +{ + "url": "https://github.com/open62541/open62541/archive/refs/tags/v1.4.1.tar.gz", + "integrity": "sha256-T0XzPk69UkEUKBfExhqU8rE1MwTIrfkJFWK6+rbds9o=", + "strip_prefix": "open62541-1.4.1", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-obQrjV1qTpH5kllLsMAQBrN7Yf6K56aKQlW8xGP3z2g=", + "add_build_file.patch": "sha256-A5BCQuOFUKY4Ex++SnZbKHABCzZF5wqpan9bntnPObw=" + } +} \ No newline at end of file diff --git a/modules/open62541/metadata.json b/modules/open62541/metadata.json new file mode 100644 index 00000000000..99177186678 --- /dev/null +++ b/modules/open62541/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "http://open62541.org/", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:open62541/open62541" + ], + "versions": [ + "1.4.1" + ], + "yanked_versions": {} +} From cb74a17d4319f5347821449a7f57450b0fa3c62a Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Mon, 1 Jul 2024 16:21:52 +0000 Subject: [PATCH 50/52] fix module patch --- modules/open62541/1.4.1/BUILD.bazel | 10 ---------- modules/open62541/1.4.1/patches/module_dot_bazel.patch | 1 - modules/open62541/1.4.1/source.json | 4 ++-- 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 modules/open62541/1.4.1/BUILD.bazel diff --git a/modules/open62541/1.4.1/BUILD.bazel b/modules/open62541/1.4.1/BUILD.bazel deleted file mode 100644 index f421d34fa24..00000000000 --- a/modules/open62541/1.4.1/BUILD.bazel +++ /dev/null @@ -1,10 +0,0 @@ -cc_library( - name = "open62541", - srcs = ["lib/libopen62541.a"], - hdrs = glob([ - "include/open62541/*.h", - "include/open62541/plugin/*.h", - ]), - strip_include_prefix = "include", - visibility = ["//visibility:public"], -) \ No newline at end of file diff --git a/modules/open62541/1.4.1/patches/module_dot_bazel.patch b/modules/open62541/1.4.1/patches/module_dot_bazel.patch index 9e633800515..0a663806ec0 100644 --- a/modules/open62541/1.4.1/patches/module_dot_bazel.patch +++ b/modules/open62541/1.4.1/patches/module_dot_bazel.patch @@ -4,5 +4,4 @@ +module( + name = "open62541", + version = "1.4.1", -+ compatibility_level = 0, +) diff --git a/modules/open62541/1.4.1/source.json b/modules/open62541/1.4.1/source.json index c2829bc9647..4c84511c8bb 100644 --- a/modules/open62541/1.4.1/source.json +++ b/modules/open62541/1.4.1/source.json @@ -4,7 +4,7 @@ "strip_prefix": "open62541-1.4.1", "patch_strip": 0, "patches": { - "module_dot_bazel.patch": "sha256-obQrjV1qTpH5kllLsMAQBrN7Yf6K56aKQlW8xGP3z2g=", + "module_dot_bazel.patch": "sha256-jXZ8ms9s0Yj7yqXziPDjIx5S5Z/15jfr5NM+zyoUUhE=", "add_build_file.patch": "sha256-A5BCQuOFUKY4Ex++SnZbKHABCzZF5wqpan9bntnPObw=" } -} \ No newline at end of file +} From b29dfca101487a47d4c93bfb9ae10daa6e8aba3b Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Mon, 1 Jul 2024 16:24:10 +0000 Subject: [PATCH 51/52] fix module patch --- modules/open62541/1.4.1/patches/module_dot_bazel.patch | 2 +- modules/open62541/1.4.1/source.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/open62541/1.4.1/patches/module_dot_bazel.patch b/modules/open62541/1.4.1/patches/module_dot_bazel.patch index 0a663806ec0..114816fdca2 100644 --- a/modules/open62541/1.4.1/patches/module_dot_bazel.patch +++ b/modules/open62541/1.4.1/patches/module_dot_bazel.patch @@ -1,6 +1,6 @@ --- MODULE.bazel +++ MODULE.bazel -@@ -0,0 +1,5 @@ +@@ -0,0 +1,4 @@ +module( + name = "open62541", + version = "1.4.1", diff --git a/modules/open62541/1.4.1/source.json b/modules/open62541/1.4.1/source.json index 4c84511c8bb..a96111509be 100644 --- a/modules/open62541/1.4.1/source.json +++ b/modules/open62541/1.4.1/source.json @@ -4,7 +4,7 @@ "strip_prefix": "open62541-1.4.1", "patch_strip": 0, "patches": { - "module_dot_bazel.patch": "sha256-jXZ8ms9s0Yj7yqXziPDjIx5S5Z/15jfr5NM+zyoUUhE=", + "module_dot_bazel.patch": "sha256-kcn7wMZY21VCcLEk6i3HKjnkBkVL+tgXcEk+R/JAGsw=", "add_build_file.patch": "sha256-A5BCQuOFUKY4Ex++SnZbKHABCzZF5wqpan9bntnPObw=" } } From 3538342329f1c5f66061addfb7fed8f941d1d252 Mon Sep 17 00:00:00 2001 From: udayaprakash Date: Wed, 10 Jul 2024 10:59:49 +0000 Subject: [PATCH 52/52] src changed --- modules/open62541/{1.4.1 => 1.4.1.bcr.1}/MODULE.bazel | 2 +- .../{1.4.1 => 1.4.1.bcr.1}/patches/add_build_file.patch | 9 +++------ .../patches/module_dot_bazel.patch | 2 +- modules/open62541/{1.4.1 => 1.4.1.bcr.1}/presubmit.yml | 0 modules/open62541/{1.4.1 => 1.4.1.bcr.1}/source.json | 4 ++-- modules/open62541/metadata.json | 2 +- 6 files changed, 8 insertions(+), 11 deletions(-) rename modules/open62541/{1.4.1 => 1.4.1.bcr.1}/MODULE.bazel (53%) rename modules/open62541/{1.4.1 => 1.4.1.bcr.1}/patches/add_build_file.patch (64%) rename modules/open62541/{1.4.1 => 1.4.1.bcr.1}/patches/module_dot_bazel.patch (74%) rename modules/open62541/{1.4.1 => 1.4.1.bcr.1}/presubmit.yml (100%) rename modules/open62541/{1.4.1 => 1.4.1.bcr.1}/source.json (58%) diff --git a/modules/open62541/1.4.1/MODULE.bazel b/modules/open62541/1.4.1.bcr.1/MODULE.bazel similarity index 53% rename from modules/open62541/1.4.1/MODULE.bazel rename to modules/open62541/1.4.1.bcr.1/MODULE.bazel index f0b9d1a851c..a8b812aa811 100644 --- a/modules/open62541/1.4.1/MODULE.bazel +++ b/modules/open62541/1.4.1.bcr.1/MODULE.bazel @@ -1,4 +1,4 @@ module( name = "open62541", - version = "1.4.1", + version = "1.4.1.bcr.1", ) diff --git a/modules/open62541/1.4.1/patches/add_build_file.patch b/modules/open62541/1.4.1.bcr.1/patches/add_build_file.patch similarity index 64% rename from modules/open62541/1.4.1/patches/add_build_file.patch rename to modules/open62541/1.4.1.bcr.1/patches/add_build_file.patch index 2e8f8210c04..c550666e6f5 100644 --- a/modules/open62541/1.4.1/patches/add_build_file.patch +++ b/modules/open62541/1.4.1.bcr.1/patches/add_build_file.patch @@ -1,12 +1,9 @@ -diff --git /dev/null BUILD.bazel -new file mode 100644 -index 00000000..f421d34f ---- /dev/null -+++ b/BUILD.bazel +--- BUILD.bazel ++++ BUILD.bazel @@ -0,0 +1,10 @@ +cc_library( + name = "open62541", -+ srcs = ["lib/libopen62541.a"], ++ srcs = glob["src/**"], + hdrs = glob([ + "include/open62541/*.h", + "include/open62541/plugin/*.h", diff --git a/modules/open62541/1.4.1/patches/module_dot_bazel.patch b/modules/open62541/1.4.1.bcr.1/patches/module_dot_bazel.patch similarity index 74% rename from modules/open62541/1.4.1/patches/module_dot_bazel.patch rename to modules/open62541/1.4.1.bcr.1/patches/module_dot_bazel.patch index 114816fdca2..166763c12e3 100644 --- a/modules/open62541/1.4.1/patches/module_dot_bazel.patch +++ b/modules/open62541/1.4.1.bcr.1/patches/module_dot_bazel.patch @@ -3,5 +3,5 @@ @@ -0,0 +1,4 @@ +module( + name = "open62541", -+ version = "1.4.1", ++ version = "1.4.1.bcr.1", +) diff --git a/modules/open62541/1.4.1/presubmit.yml b/modules/open62541/1.4.1.bcr.1/presubmit.yml similarity index 100% rename from modules/open62541/1.4.1/presubmit.yml rename to modules/open62541/1.4.1.bcr.1/presubmit.yml diff --git a/modules/open62541/1.4.1/source.json b/modules/open62541/1.4.1.bcr.1/source.json similarity index 58% rename from modules/open62541/1.4.1/source.json rename to modules/open62541/1.4.1.bcr.1/source.json index a96111509be..9473103001c 100644 --- a/modules/open62541/1.4.1/source.json +++ b/modules/open62541/1.4.1.bcr.1/source.json @@ -4,7 +4,7 @@ "strip_prefix": "open62541-1.4.1", "patch_strip": 0, "patches": { - "module_dot_bazel.patch": "sha256-kcn7wMZY21VCcLEk6i3HKjnkBkVL+tgXcEk+R/JAGsw=", - "add_build_file.patch": "sha256-A5BCQuOFUKY4Ex++SnZbKHABCzZF5wqpan9bntnPObw=" + "module_dot_bazel.patch": "sha256-eZAEB0cx6w61jUbQ/JokmJzYlu9WqVKcSmvIvuvggPM=", + "add_build_file.patch": "sha256-GTSlG7NNpTpBTnRFnK5r8r8sBJSyIiov6TbAHI4Of9E=" } } diff --git a/modules/open62541/metadata.json b/modules/open62541/metadata.json index 99177186678..d65aeafb448 100644 --- a/modules/open62541/metadata.json +++ b/modules/open62541/metadata.json @@ -10,7 +10,7 @@ "github:open62541/open62541" ], "versions": [ - "1.4.1" + "1.4.1.bcr.1" ], "yanked_versions": {} }