Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove hashicorp version dependency #6

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.