Skip to content

Commit

Permalink
Fix unknown repo error with mtree_mutate and Bzlmod (#948)
Browse files Browse the repository at this point in the history
With Bzlmod, every repo has its own namespace. Using Label() should make sure it uses the namespace of the .bzl file instead of the caller's one.
  • Loading branch information
mering authored Oct 4, 2024
1 parent 1b4d9a7 commit ca80d07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tar.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/tar.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def mtree_mutate(
mtime = None,
owner = None,
ownername = None,
awk_script = "@aspect_bazel_lib//lib/private:modify_mtree.awk",
awk_script = Label("@aspect_bazel_lib//lib/private:modify_mtree.awk"),
**kwargs):
"""Modify metadata in an mtree file.
Expand Down

0 comments on commit ca80d07

Please sign in to comment.