From 9a9709f5b689bf340364a08035505f223018cc5a Mon Sep 17 00:00:00 2001 From: Gamunu Balagalla Date: Wed, 10 Apr 2024 13:22:56 +0530 Subject: [PATCH] fix: remove hashicorp version dependency Removing embed code until we find a solution to manage versions and we have a proper version stratergy --- version.go | 20 ++------------------ version/VERSION | 1 - 2 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 version/VERSION diff --git a/version.go b/version.go index f62ce8e57..67f05571e 100644 --- a/version.go +++ b/version.go @@ -3,27 +3,11 @@ package main -import ( - _ "embed" - "strings" - - goversion "github.com/hashicorp/go-version" -) - var ( - // The next version number that will be released. This will be updated after every release - // Version must conform to the format expected by github.com/hashicorp/go-version - // for tests to work. - // A pre-release marker for the version can also be specified (e.g -dev). If this is omitted - // then it means that it is a final release. Otherwise, this is a pre-release - // such as "dev" (in development), "beta", "rc1", etc. - //go:embed version/VERSION - rawVersion string - - version = goversion.Must(goversion.NewVersion(strings.TrimSpace(rawVersion))) + version = "0.1.0" ) // VersionString returns the complete version string, including prerelease func VersionString() string { - return version.String() + return version } diff --git a/version/VERSION b/version/VERSION deleted file mode 100644 index 17e51c385..000000000 --- a/version/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.1.1