Skip to content

Commit

Permalink
feat(metadata): add original semver string (siderolabs#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Oct 16, 2018
1 parent d65491a commit 5caf3b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type Git struct {

// Version contains version specific metadata.
type Version struct {
Original string
Major int64
Minor int64
Patch int64
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 5caf3b5

Please sign in to comment.