From 819170eb8324064129925f9330b474dfe2bfb746 Mon Sep 17 00:00:00 2001 From: Mateusz Hazy <158565055+sfc-gh-mhazy@users.noreply.github.com> Date: Tue, 20 Aug 2024 08:51:12 +0200 Subject: [PATCH] Fix path to apko binary in apko_lock. (#92) Executables should refer to runfiles with short paths. --- apko/private/apko_lock.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apko/private/apko_lock.bzl b/apko/private/apko_lock.bzl index abb6e33..174de51 100644 --- a/apko/private/apko_lock.bzl +++ b/apko/private/apko_lock.bzl @@ -30,7 +30,7 @@ def _impl(ctx): ctx.actions.write( output = output, content = LAUNCHER_TEMPLATE - .replace("{{apko_binary}}", apko_info.binary.path) + .replace("{{apko_binary}}", apko_info.binary.short_path) .replace("{{config}}", ctx.file.config.short_path) .replace("{{output}}", ctx.attr.lockfile_name), is_executable = True,