From d3f109c425acff11c4b27e8b5fc4f4f056471908 Mon Sep 17 00:00:00 2001 From: Ben Gittins Date: Thu, 4 Jul 2024 07:36:42 +0000 Subject: [PATCH] Publish ihavespoons/rules_syft@v0.1.0 --- modules/rules_syft/0.1.0/MODULE.bazel | 21 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 14 +++++++++++++ modules/rules_syft/0.1.0/presubmit.yml | 15 +++++++++++++ modules/rules_syft/0.1.0/source.json | 9 ++++++++ modules/rules_syft/metadata.json | 3 ++- 5 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 modules/rules_syft/0.1.0/MODULE.bazel create mode 100644 modules/rules_syft/0.1.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_syft/0.1.0/presubmit.yml create mode 100644 modules/rules_syft/0.1.0/source.json diff --git a/modules/rules_syft/0.1.0/MODULE.bazel b/modules/rules_syft/0.1.0/MODULE.bazel new file mode 100644 index 00000000000..e0392a1c423 --- /dev/null +++ b/modules/rules_syft/0.1.0/MODULE.bazel @@ -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") diff --git a/modules/rules_syft/0.1.0/patches/module_dot_bazel_version.patch b/modules/rules_syft/0.1.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..d085d6efa14 --- /dev/null +++ b/modules/rules_syft/0.1.0/patches/module_dot_bazel_version.patch @@ -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") diff --git a/modules/rules_syft/0.1.0/presubmit.yml b/modules/rules_syft/0.1.0/presubmit.yml new file mode 100644 index 00000000000..104bf6906c3 --- /dev/null +++ b/modules/rules_syft/0.1.0/presubmit.yml @@ -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" diff --git a/modules/rules_syft/0.1.0/source.json b/modules/rules_syft/0.1.0/source.json new file mode 100644 index 00000000000..2b2a7838575 --- /dev/null +++ b/modules/rules_syft/0.1.0/source.json @@ -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 +} diff --git a/modules/rules_syft/metadata.json b/modules/rules_syft/metadata.json index ce75df942c5..10f27493b24 100644 --- a/modules/rules_syft/metadata.json +++ b/modules/rules_syft/metadata.json @@ -12,7 +12,8 @@ ], "versions": [ "0.0.1", - "0.0.2" + "0.0.2", + "0.1.0" ], "yanked_versions": {} }