From 2e3ba15944ae2563bfa03ba6fefd83df913f0a4b Mon Sep 17 00:00:00 2001 From: Andrew Rynhard Date: Fri, 19 Oct 2018 14:34:21 -0700 Subject: [PATCH] fix(metadata): keep original version string --- pkg/metadata/metadata.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/metadata/metadata.go b/pkg/metadata/metadata.go index b0a30691..e874f63c 100644 --- a/pkg/metadata/metadata.go +++ b/pkg/metadata/metadata.go @@ -89,7 +89,7 @@ func addMetadataForVersion(m *Metadata) error { m.Version = &Version{} if m.Git.IsTag { var ver *semver.Version - ver, err := semver.NewVersion(m.Git.Tag[1:]) + ver, err := semver.NewVersion(m.Git.Tag) if err != nil { return err }