From 5caf3b5c99fb0cd164b2a1f60d9eef86969bc384 Mon Sep 17 00:00:00 2001 From: Andrew Rynhard Date: Tue, 16 Oct 2018 16:32:07 -0700 Subject: [PATCH] feat(metadata): add original semver string (#79) --- pkg/metadata/metadata.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/metadata/metadata.go b/pkg/metadata/metadata.go index 65b75de0..f759d517 100644 --- a/pkg/metadata/metadata.go +++ b/pkg/metadata/metadata.go @@ -46,6 +46,7 @@ type Git struct { // Version contains version specific metadata. type Version struct { + Original string Major int64 Minor int64 Patch int64 @@ -91,6 +92,7 @@ func addMetadataForVersion(m *Metadata) error { if err != nil { return err } + m.Version.Original = ver.Original() m.Version.Major = ver.Major() m.Version.Minor = ver.Minor() m.Version.Patch = ver.Patch()