From 3b165b3f8d332bb9e0c16d6e43ffeb923f5acbf7 Mon Sep 17 00:00:00 2001 From: Andrew Rynhard Date: Fri, 19 Oct 2018 15:34:48 -0700 Subject: [PATCH] fix(metadata): keep original version string (#82) --- 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 }