-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish bazel-contrib/[email protected]
- Loading branch information
Sahin Yort
committed
Jul 12, 2024
1 parent
746a221
commit 1d6ff03
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
14
modules/rules_oci/1.8.0/patches/module_dot_bazel_version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
- "//..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|