From b27ed4eb69d3c7e2fb655c7deba30eee43471f73 Mon Sep 17 00:00:00 2001 From: zhouhaibing089 Date: Thu, 18 Feb 2021 11:57:37 -0800 Subject: [PATCH] options: update --bare help message The current `--bare` help message is a little bit confusing: It says that it will not work with `--tags` properly, but in fact, I would assume it means that it may not work properly instead. With `--bare`, the name will be `${KO_DOCKER_REPO}:`. --- pkg/commands/options/publish.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/commands/options/publish.go b/pkg/commands/options/publish.go index 928f3aabc4..61ca0880c5 100644 --- a/pkg/commands/options/publish.go +++ b/pkg/commands/options/publish.go @@ -41,7 +41,7 @@ type PublishOptions struct { PreserveImportPaths bool // BaseImportPaths uses the base path without MD5 hash after KO_DOCKER_REPO. BaseImportPaths bool - // Base uses a tag on the KO_DOCKER_REPO without anything additional. + // Bare uses a tag on the KO_DOCKER_REPO without anything additional. Bare bool } @@ -65,7 +65,7 @@ func AddPublishArg(cmd *cobra.Command, po *PublishOptions) { cmd.Flags().BoolVarP(&po.BaseImportPaths, "base-import-paths", "B", po.BaseImportPaths, "Whether to use the base path without MD5 hash after KO_DOCKER_REPO (may not work properly with --tags).") cmd.Flags().BoolVar(&po.Bare, "bare", po.Bare, - "Whether to just use KO_DOCKER_REPO without additional context (will not work properly with --tags).") + "Whether to just use KO_DOCKER_REPO without additional context (may not work properly with --tags).") } func packageWithMD5(base, importpath string) string {