Skip to content

Commit

Permalink
Fix unknown repo error with mtree_mutate and Bzlmod
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 committed Sep 24, 2024
1 parent b48be23 commit 4c16e9f
Showing 1 changed file with 1 addition and 1 deletion.
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 4c16e9f

Please sign in to comment.