Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
3 people authored Dec 13, 2024
1 parent 8610193 commit bb553f1
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 1 deletion.
38 changes: 38 additions & 0 deletions modules/rules_oci/2.2.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
"bazel-contrib/rules_oci"

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

bazel_dep(name = "aspect_bazel_lib", version = "2.7.2")
bazel_dep(name = "bazel_features", version = "1.10.0")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "platforms", version = "0.0.8")

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)
bazel_dep(name = "rules_multirun", version = "0.9.0", dev_dependency = True)
bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True, repo_name = "io_bazel_stardoc")
14 changes: 14 additions & 0 deletions modules/rules_oci/2.2.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 = "2.2.0",
compatibility_level = 1,
)

bazel_dep(name = "aspect_bazel_lib", version = "2.7.2")
14 changes: 14 additions & 0 deletions modules/rules_oci/2.2.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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:
- "//..."

9 changes: 9 additions & 0 deletions modules/rules_oci/2.2.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"integrity": "sha256-G9FuRVJ41SPwEybgw5ZM1k14QKfpnN1uJhfln2mPNQQ=",
"strip_prefix": "rules_oci-2.2.0",
"url": "https://github.com/bazel-contrib/rules_oci/releases/download/v2.2.0/rules_oci-v2.2.0.tar.gz",
"patches": {
"module_dot_bazel_version.patch": "sha256-XQHsYw57+CdXRUItWwE6peC8Iml10fl41TIsju+URtc="
},
"patch_strip": 1
}
3 changes: 2 additions & 1 deletion modules/rules_oci/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"2.0.0-beta1",
"2.0.0-rc0",
"2.0.0",
"2.0.1"
"2.0.1",
"2.2.0"
],
"yanked_versions": {}
}

0 comments on commit bb553f1

Please sign in to comment.