Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] #2362

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions modules/rules_syft/0.1.0/MODULE.bazel
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 modules/rules_syft/0.1.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 @@
"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")
15 changes: 15 additions & 0 deletions modules/rules_syft/0.1.0/presubmit.yml
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"
9 changes: 9 additions & 0 deletions modules/rules_syft/0.1.0/source.json
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
}
3 changes: 2 additions & 1 deletion modules/rules_syft/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
],
"versions": [
"0.0.1",
"0.0.2"
"0.0.2",
"0.1.0"
],
"yanked_versions": {}
}
Loading