From 02f570f27d5e3ad4ec8c143dcab88781f0bccc45 Mon Sep 17 00:00:00 2001 From: Aleksey Pesternikov Date: Mon, 28 Nov 2022 05:18:34 -0800 Subject: [PATCH] test fixes --- skylib/push.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skylib/push.bzl b/skylib/push.bzl index 4f2b5170..e322cd57 100644 --- a/skylib/push.bzl +++ b/skylib/push.bzl @@ -49,9 +49,11 @@ def _impl(ctx): if K8sPushInfo in ctx.attr.image: # the image was already pushed, just rename if needed. Ignore registry and repository parameters kpi = ctx.attr.image[K8sPushInfo] + print("DefaultInfo:", ctx.attr.image, ctx.attr.image[DefaultInfo]) + actual_pusher = ctx.attr.image[DefaultInfo].files_to_run.executable.short_path if ctx.attr.image[DefaultInfo].files_to_run.executable else ''; ctx.actions.write( content = "#!/bin/bash\n{actual_pusher}\n".format( - actual_pusher = ctx.attr.image[DefaultInfo].files_to_run.executable.short_path, + actual_pusher = actual_pusher, ), output = ctx.outputs.executable, is_executable = True,