From 179f372b71348b5b3e5d7fafb47e73529f38f1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Gustav=20Str=C3=A5b=C3=B8?= Date: Thu, 12 Oct 2023 16:07:07 +0200 Subject: [PATCH 1/3] remove unused embed package --- cmd/root.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 55d79f2..2f9e039 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,7 +1,6 @@ package cmd import ( - _ "embed" "errors" "fmt" "os" From 6115b32c5521ab5e7f7bbad388008a2e6d2d4412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Gustav=20Str=C3=A5b=C3=B8?= Date: Thu, 12 Oct 2023 16:07:30 +0200 Subject: [PATCH 2/3] add ldflags to reduce size of compiled binary --- .goreleaser.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 6e22c45..ca7f169 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,12 +10,12 @@ builds: - darwin - windows goarch: - - 386 + - "386" - amd64 - arm - arm64 ldflags: - - "-X 'github.com/equinor/radix-cli/cmd.Version={{ .Version }}'" + - "-s -w -X 'github.com/equinor/radix-cli/cmd.Version={{ .Version }}'" dockers: - image_templates: - "ghcr.io/equinor/radix/rx:latest" From e187e630d77d228e6453e87b01f728d510c319e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Gustav=20Str=C3=A5b=C3=B8?= Date: Thu, 12 Oct 2023 16:09:48 +0200 Subject: [PATCH 3/3] remove unused var --- cmd/root.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 2f9e039..f01fd0f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -17,10 +17,6 @@ import ( "github.com/spf13/cobra" ) -const ( - radixCLIError = "Error: Radix CLI executed with error" -) - var Version = "dev" var rootLongHelp = strings.TrimSpace(` A command line interface which allows you to interact with the Radix platform through automation.