Skip to content

Commit

Permalink
Publish bazel-contrib/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahin Yort committed Jul 12, 2024
1 parent 746a221 commit 1d6ff03
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
30 changes: 30 additions & 0 deletions modules/rules_oci/1.8.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"bazel-contrib/rules_oci"

module(
name = "rules_oci",
version = "1.8.0",
compatibility_level = 1,
)

bazel_dep(name = "aspect_bazel_lib", version = "1.42.1")
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.18.0")
use_repo(oci, "oci_crane_registry_toolchains", "oci_crane_toolchains")

register_toolchains("@oci_crane_toolchains//:all", "@oci_crane_registry_toolchains//:all")

# Dev dependencies
bazel_lib = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains")
bazel_lib.jq()
bazel_lib.yq()
use_repo(bazel_lib, "jq_toolchains", "yq_toolchains")

bazel_dep(name = "rules_go", version = "0.46.0", dev_dependency = True, repo_name = "io_bazel_rules_go")
bazel_dep(name = "rules_pkg", version = "0.7.0", dev_dependency = True)
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)

bazel_dep(name = "container_structure_test", version = "1.16.0")
14 changes: 14 additions & 0 deletions modules/rules_oci/1.8.0/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -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.8.0",
compatibility_level = 1,
)

bazel_dep(name = "aspect_bazel_lib", version = "1.42.1")
16 changes: 16 additions & 0 deletions modules/rules_oci/1.8.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bcr_test_module:
module_path: "e2e/crane_as_registry"
matrix:
bazel: ["6.x", "7.x"]
# 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"
bazel: ${{ bazel }}
platform: ${{ platform }}
test_targets:
- "//..."
9 changes: 9 additions & 0 deletions modules/rules_oci/1.8.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-Rs6e3P9NPXs6VQd0uCOWwPphnMnOnaAMGwmgi0XqWhQ=",
"strip_prefix": "rules_oci-1.8.0",
"url": "https://github.com/bazel-contrib/rules_oci/releases/download/v1.8.0/rules_oci-v1.8.0.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-10v8nJKMTuyip1IE9wmo6MikxHD0GwRyKvyzqSd4a84="
},
"patch_strip": 1
}
1 change: 1 addition & 0 deletions modules/rules_oci/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"1.7.4",
"1.7.5",
"1.7.6",
"1.8.0",
"2.0.0-alpha1",
"2.0.0-alpha2",
"2.0.0-alpha3",
Expand Down

0 comments on commit 1d6ff03

Please sign in to comment.