-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish ihavespoons/[email protected]
- Loading branch information
1 parent
375085d
commit d3f109c
Showing
5 changed files
with
61 additions
and
1 deletion.
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,21 @@ | ||
"ihavespoons/rules_syft" | ||
|
||
module( | ||
name = "rules_syft", | ||
version = "0.1.0", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "aspect_bazel_lib", version = "2.7.3") | ||
bazel_dep(name = "bazel_skylib", version = "1.6.1") | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
|
||
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True) | ||
bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = True) | ||
|
||
# TODO should this be here ? or is this the root-cause of "multiple versions"? | ||
syft = use_extension("//syft:extensions.bzl", "syft") | ||
syft.toolchain() | ||
use_repo(syft, "syft_toolchains") | ||
|
||
register_toolchains("@syft_toolchains//:all") |
14 changes: 14 additions & 0 deletions
14
modules/rules_syft/0.1.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 @@ | ||
"ihavespoons/rules_syft" | ||
|
||
module( | ||
name = "rules_syft", | ||
- version = "0.0.0", | ||
+ version = "0.1.0", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "aspect_bazel_lib", version = "2.7.3") |
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,15 @@ | ||
# We recommend included a bcr test workspace that exercises your ruleset with bzlmod. | ||
# For an example, see https://github.com/aspect-build/bazel-lib/tree/main/e2e/bzlmod. | ||
bcr_test_module: | ||
module_path: "e2e/smoke" | ||
matrix: | ||
platform: ["debian10", "macos", "ubuntu2004"] | ||
bazel: ["7.x", "6.x"] | ||
tasks: | ||
run_tests: | ||
name: "Run test module" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
test_targets: | ||
- "//e2e/smoke:smoke_test" | ||
- "//e2e/grype_database_name:smoke_test" |
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-0/dNW4pbxiwmhAUhpeF0ZnxHgQ8BkgrdQy4/w/mDUtI=", | ||
"strip_prefix": "rules_syft-0.1.0", | ||
"url": "https://github.com/ihavespoons/rules_syft/releases/download/v0.1.0/rules_syft-v0.1.0.tar.gz", | ||
"patches": { | ||
"module_dot_bazel_version.patch": "sha256-NNaNAMRVsJOLDsCPV8rbp7UxFT6ZnIwD6BRmYcIrRqM=" | ||
}, | ||
"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 |
---|---|---|
|
@@ -12,7 +12,8 @@ | |
], | ||
"versions": [ | ||
"0.0.1", | ||
"0.0.2" | ||
"0.0.2", | ||
"0.1.0" | ||
], | ||
"yanked_versions": {} | ||
} |