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 authored Apr 10, 2024
1 parent bd5ec62 commit 832d4e2
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 832d4e2

Please sign in to comment.