Skip to content

Commit

Permalink
Publish ihavespoons/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavespoons committed Jul 4, 2024
1 parent 375085d commit d3f109c
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 1 deletion.
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": {}
}

0 comments on commit d3f109c

Please sign in to comment.