From adaff3ee89c8a1868d41423c6d0e6ffe706c500e Mon Sep 17 00:00:00 2001 From: Nicolas Byl Date: Tue, 8 May 2018 21:34:02 +0200 Subject: [PATCH] make destination required to fix "could not parse reference" errors --- cmd/executor/cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/executor/cmd/root.go b/cmd/executor/cmd/root.go index 6a4fd546e..2e5d0a66a 100644 --- a/cmd/executor/cmd/root.go +++ b/cmd/executor/cmd/root.go @@ -47,6 +47,7 @@ func init() { RootCmd.PersistentFlags().StringVarP(&srcContext, "context", "c", "/workspace/", "Path to the dockerfile build context.") RootCmd.PersistentFlags().StringVarP(&bucket, "bucket", "b", "", "Name of the GCS bucket from which to access build context as tarball.") RootCmd.PersistentFlags().StringVarP(&destination, "destination", "d", "", "Registry the final image should be pushed to (ex: gcr.io/test/example:latest)") + RootCmd.MarkPersistentFlagRequired("destination") RootCmd.PersistentFlags().StringVarP(&snapshotMode, "snapshotMode", "", "full", "Set this flag to change the file attributes inspected during snapshotting") RootCmd.PersistentFlags().BoolVarP(&dockerInsecureSkipTLSVerify, "insecure-skip-tls-verify", "", false, "Push to insecure registry ignoring TLS verify") RootCmd.PersistentFlags().StringVarP(&logLevel, "verbosity", "v", constants.DefaultLogLevel, "Log level (debug, info, warn, error, fatal, panic")