Skip to content

Commit

Permalink
Fix label override provided by custom container_image rules (#2233)
Browse files Browse the repository at this point in the history
_image_config was retrieving labels from ctx instead of the
labels arg.
  • Loading branch information
hamsterstorm authored Mar 16, 2023
1 parent 704d3a5 commit 4ad878e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions container/image.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def _image_config(
)

labels_fixed = dict()
for label in ctx.attr.labels:
fname = ctx.attr.labels[label]
for label in labels:
fname = labels[label]
if fname[0] == "@":
labels_fixed[label] = "@" + label_file_dict[fname[1:]].path
else:
Expand Down

0 comments on commit 4ad878e

Please sign in to comment.