Skip to content

Commit

Permalink
fix: remove hashicorp version dependency (#6)
Browse files Browse the repository at this point in the history
Removing embed code until we find a solution to manage
versions and we have a proper version stratergy
  • Loading branch information
gamunu committed Apr 12, 2024
1 parent 8753031 commit 5c1fffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
20 changes: 2 additions & 18 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
1 change: 0 additions & 1 deletion version/VERSION

This file was deleted.

0 comments on commit 5c1fffc

Please sign in to comment.