From 823534499705cc89b8513a84bd000fb4620a9595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20N=C3=BCtzi?= Date: Sat, 6 Jul 2024 22:00:57 +0200 Subject: [PATCH] fix: skopeo cannot deal with `:` in image names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gabriel Nützi --- tools/build-image.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/build-image.sh b/tools/build-image.sh index 05fbf22..3b4dadd 100755 --- a/tools/build-image.sh +++ b/tools/build-image.sh @@ -51,7 +51,11 @@ function main() { image_name=$(nix eval --raw "./tools/nix#images.rdf-protect.imageName") image_tag=$(nix eval --raw "./tools/nix#images.rdf-protect.imageTag") - dir="build/image/$image_name:$image_tag.tar.gz" + + # We cannot use `:` before the tag, because `skopeo` + # is unable to read this path correctly, because it + # stupidly deals with it. + dir="build/image/$image_name|$image_tag.tar.gz" cd "$ROOT_DIR"