From 46c29208b42e0488095ec85ab37e41d373c4efb5 Mon Sep 17 00:00:00 2001 From: "Cuong. Duong Manh" Date: Fri, 17 May 2024 13:51:03 +0700 Subject: [PATCH] [fix] remove package version --- .goreleaser.yaml | 4 +--- vngcloud/version/version.go | 14 -------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 vngcloud/version/version.go diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 45d6a15..1ebf0cc 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,5 +1,3 @@ # .goreleaser.yaml builds: - - skip: false - ldflags: - - -s -w -X 'github.com/vngcloud/vngcloud-go-sdk/vngcloud/version.Version={{.Tag}}' \ No newline at end of file + - skip: true \ No newline at end of file diff --git a/vngcloud/version/version.go b/vngcloud/version/version.go deleted file mode 100644 index ad91739..0000000 --- a/vngcloud/version/version.go +++ /dev/null @@ -1,14 +0,0 @@ -package version - -import ( - "fmt" - "os" -) - -// Version is set by the linker flags in the Makefile. -var Version string - -func PrintVersionAndExit() { - fmt.Printf("%s\n", Version) - os.Exit(0) -}