Skip to content

Commit ceef40d

Browse files
committed
fix: create repos from module extension
1 parent b35ec82 commit ceef40d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sbom/extensions.bzl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"""Module extensions for configuring rules_sbom dependencies."""
22

3+
load("//sbom:repositories.bzl", "syft_repository")
34
load("//sbom:setup.bzl", "rules_sbom_setup")
45

56
def _sbom_setup_impl(module_ctx):
6-
syft_repo = module_ctx.use_repo_rule(
7-
"//sbom:repositories.bzl",
8-
"syft_repository",
9-
)
10-
rules_sbom_setup(syft_repo)
7+
def _syft_repo(**kwargs):
8+
module_ctx.use_repo(syft_repository, **kwargs)
9+
10+
rules_sbom_setup(_syft_repo)
1111

1212
sbom_setup = module_extension(
1313
implementation = _sbom_setup_impl,

0 commit comments

Comments
 (0)