From 4ad878edf19e5c0823f358bf317a3cb80f0e13df Mon Sep 17 00:00:00 2001 From: Nick Cox <126519162+hamsterstorm@users.noreply.github.com> Date: Wed, 15 Mar 2023 21:27:06 -0700 Subject: [PATCH] Fix label override provided by custom container_image rules (#2233) _image_config was retrieving labels from ctx instead of the labels arg. --- container/image.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container/image.bzl b/container/image.bzl index 9e4f0a22b..790409a7e 100644 --- a/container/image.bzl +++ b/container/image.bzl @@ -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: