From 2adbc4ffe3f626c720a93ed24a16c8d297937a54 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, 21 Nov 2023 11:13:10 -0800 Subject: [PATCH] Publish bazel-contrib/rules_oci@v1.4.3 (#1141) Co-authored-by: Sahin Yort --- modules/rules_oci/1.4.3/MODULE.bazel | 21 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++++++++++++ modules/rules_oci/1.4.3/presubmit.yml | 14 +++++++++++++ modules/rules_oci/1.4.3/source.json | 9 ++++++++ modules/rules_oci/metadata.json | 3 ++- 5 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 modules/rules_oci/1.4.3/MODULE.bazel create mode 100644 modules/rules_oci/1.4.3/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_oci/1.4.3/presubmit.yml create mode 100644 modules/rules_oci/1.4.3/source.json diff --git a/modules/rules_oci/1.4.3/MODULE.bazel b/modules/rules_oci/1.4.3/MODULE.bazel new file mode 100644 index 00000000000..4d60c35d756 --- /dev/null +++ b/modules/rules_oci/1.4.3/MODULE.bazel @@ -0,0 +1,21 @@ +"bazel-contrib/rules_oci" + +module( + name = "rules_oci", + version = "1.4.3", + compatibility_level = 1, +) + +bazel_dep(name = "aspect_bazel_lib", version = "1.35.0") +bazel_dep(name = "bazel_skylib", version = "1.4.1") +bazel_dep(name = "platforms", version = "0.0.5") + +oci = use_extension("//oci:extensions.bzl", "oci") +oci.toolchains(crane_version = "v0.16.1") +use_repo(oci, "oci_auth_config", "oci_crane_registry_toolchains", "oci_crane_toolchains") + +register_toolchains("@oci_crane_toolchains//:all", "@oci_crane_registry_toolchains//:all") + +bazel_dep(name = "rules_pkg", version = "0.7.0", dev_dependency = True) +bazel_dep(name = "gazelle", version = "0.29.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/1.4.3/patches/module_dot_bazel_version.patch b/modules/rules_oci/1.4.3/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..2ec2be87c19 --- /dev/null +++ b/modules/rules_oci/1.4.3/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 = "1.4.3", + compatibility_level = 1, + ) + + bazel_dep(name = "aspect_bazel_lib", version = "1.35.0") diff --git a/modules/rules_oci/1.4.3/presubmit.yml b/modules/rules_oci/1.4.3/presubmit.yml new file mode 100644 index 00000000000..d065f662397 --- /dev/null +++ b/modules/rules_oci/1.4.3/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "e2e/crane_as_registry" + matrix: + # TODO(#97): add windows + # File "C:/b/eznkjcld/external/rules_oci~override/oci/repositories.bzl", line 100, column 64, in _stucture_test_repo_impl + # integrity = ST_VERSIONS[repository_ctx.attr.st_version][platform], + # Error: key "windows-amd64" not found in dictionary + platform: ["debian10", "macos", "ubuntu2004"] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/modules/rules_oci/1.4.3/source.json b/modules/rules_oci/1.4.3/source.json new file mode 100644 index 00000000000..cc914544552 --- /dev/null +++ b/modules/rules_oci/1.4.3/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-1B0Lp4VfAprQ5e41Al+ILL5FsNXVcIQsUnBPeke6hmg=", + "strip_prefix": "rules_oci-1.4.3", + "url": "https://github.com/bazel-contrib/rules_oci/releases/download/v1.4.3/rules_oci-v1.4.3.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-+kKorGCd+ENIArBt/f7FAT94IsfALRiiTjftBf4+SsY=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_oci/metadata.json b/modules/rules_oci/metadata.json index c17cbd0ce9d..4c8803716ba 100644 --- a/modules/rules_oci/metadata.json +++ b/modules/rules_oci/metadata.json @@ -32,7 +32,8 @@ "1.3.2", "1.3.3", "1.4.0", - "1.4.2" + "1.4.2", + "1.4.3" ], "yanked_versions": {} }