v0.0.1
Pre-release
Pre-release
Using Bzlmod with Bazel 6
- Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "rules_syft", version = "0.0.1")
syft_configure = use_extension("@rules_syft//syft:extensions.bzl", "syft")
syft_configure.toolchain(syft_version = "0.96.0")
use_repo(syft_configure, "syft_toolchains")
register_toolchains("@syft_toolchains//:all")
Using WORKSPACE
Paste this snippet into your file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_syft",
sha256 = "371e764ad6dde2fa7724cd1dfab4781de8f4d9f5a537483089ced7b5eb6764e4",
strip_prefix = "rules_syft-0.0.1",
url = "https://github.com/ihavespoons/rules_syft/releases/download/v0.0.1/rules_syft-v0.0.1.tar.gz",
)
load("@rules_syft//syft:repositories.bzl", "syft_register_toolchains")
syft_register_toolchains(
"syft",
syft_version = "0.96.0",
)