Skip to content

Commit 4ad878e

Browse files
authored
Fix label override provided by custom container_image rules (#2233)
_image_config was retrieving labels from ctx instead of the labels arg.
1 parent 704d3a5 commit 4ad878e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

container/image.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ def _image_config(
187187
)
188188

189189
labels_fixed = dict()
190-
for label in ctx.attr.labels:
191-
fname = ctx.attr.labels[label]
190+
for label in labels:
191+
fname = labels[label]
192192
if fname[0] == "@":
193193
labels_fixed[label] = "@" + label_file_dict[fname[1:]].path
194194
else:

0 commit comments

Comments
 (0)