From aad019b9c7d64d3b5a9feef7b45d49d6887eb497 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Mon, 30 Sep 2024 19:06:32 -0700 Subject: [PATCH] Dont' skip latest tag Signed-off-by: Tamal Saha --- pkg/cmds/gcp_script.go | 2 -- pkg/cmds/scripts.go | 6 ------ 2 files changed, 8 deletions(-) diff --git a/pkg/cmds/gcp_script.go b/pkg/cmds/gcp_script.go index e7c52c5e..ee6735a6 100644 --- a/pkg/cmds/gcp_script.go +++ b/pkg/cmds/gcp_script.go @@ -94,8 +94,6 @@ fi } if ref.Tag == "" { return fmt.Errorf("image %s has no tag", img) - } else if ref.Tag == "latest" { - continue } buf.WriteString("crane cp") diff --git a/pkg/cmds/scripts.go b/pkg/cmds/scripts.go index 42bf16b4..3832f8d4 100644 --- a/pkg/cmds/scripts.go +++ b/pkg/cmds/scripts.go @@ -137,8 +137,6 @@ CMD="./images/crane" } if ref.Tag == "" { return fmt.Errorf("image %s has no tag", img) - } else if ref.Tag == "latest" { - continue } buf.WriteString("$CMD pull") @@ -187,8 +185,6 @@ CMD="./crane" } if ref.Tag == "" { return fmt.Errorf("image %s has no tag", img) - } else if ref.Tag == "latest" { - continue } buf.WriteString("$CMD push") @@ -246,8 +242,6 @@ CMD="./crane" } if ref.Tag == "" { return fmt.Errorf("image %s has no tag", img) - } else if ref.Tag == "latest" { - continue } buf.WriteString("$CMD cp")