Skip to content

Commit fa1ab7d

Browse files
committed
Don't include build version metadata in pretty version
It's still available in the version components.
1 parent fcc98b9 commit fa1ab7d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

datasource/ipsw.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ func (d *Datasource) Execute() (cty.Value, error) {
149149
sort.Sort(results)
150150
var mostRecent = results[len(results)-1]
151151

152-
mostRecent.Version = mostRecent.semVer.String()
152+
versionWithoutMetadata, _ := mostRecent.semVer.SetMetadata("")
153+
mostRecent.Version = versionWithoutMetadata.String()
154+
153155
mostRecent.VersionComponents = &VersionComponents{
154156
Major: mostRecent.semVer.Major(),
155157
Minor: mostRecent.semVer.Minor(),

0 commit comments

Comments
 (0)