diff --git a/modules/rules_oci/1.4.0/MODULE.bazel b/modules/rules_oci/1.4.0/MODULE.bazel new file mode 100644 index 00000000000..bacb1d23003 --- /dev/null +++ b/modules/rules_oci/1.4.0/MODULE.bazel @@ -0,0 +1,21 @@ +"bazel-contrib/rules_oci" + +module( + name = "rules_oci", + compatibility_level = 1, + version = "1.4.0", +) + +bazel_dep(name = "aspect_bazel_lib", version = "1.32.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.14.0") +use_repo(oci, "oci_crane_toolchains", "oci_crane_registry_toolchains", "oci_auth_config") + +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", repo_name = "bazel_gazelle", dev_dependency = True) +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) diff --git a/modules/rules_oci/1.4.0/patches/module_dot_bazel_version.patch b/modules/rules_oci/1.4.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..6e4eee44b1e --- /dev/null +++ b/modules/rules_oci/1.4.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -2,9 +2,9 @@ + + module( + name = "rules_oci", + compatibility_level = 1, +- version = "0.0.0", ++ version = "1.4.0", + ) + + bazel_dep(name = "aspect_bazel_lib", version = "1.32.0") + bazel_dep(name = "bazel_skylib", version = "1.4.1") diff --git a/modules/rules_oci/1.4.0/presubmit.yml b/modules/rules_oci/1.4.0/presubmit.yml new file mode 100644 index 00000000000..d065f662397 --- /dev/null +++ b/modules/rules_oci/1.4.0/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.0/source.json b/modules/rules_oci/1.4.0/source.json new file mode 100644 index 00000000000..3d23fe43ea8 --- /dev/null +++ b/modules/rules_oci/1.4.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-IafRT23fy4ynxfyf+mZ8k3zkYix9Kz4XrqH/vJDJa+0=", + "strip_prefix": "rules_oci-1.4.0", + "url": "https://github.com/bazel-contrib/rules_oci/releases/download/v1.4.0/rules_oci-v1.4.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-yjeVCtJSqIedRF33/UChJESZWFu9OCkXO4USjk0nDRE=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_oci/metadata.json b/modules/rules_oci/metadata.json index 9b4fe79d71e..fd1ba2c6038 100644 --- a/modules/rules_oci/metadata.json +++ b/modules/rules_oci/metadata.json @@ -30,7 +30,8 @@ "1.3.0", "1.3.1", "1.3.2", - "1.3.3" + "1.3.3", + "1.4.0" ], "yanked_versions": {} }