Skip to content

Commit

Permalink
Fix sorting tags
Browse files Browse the repository at this point in the history
  • Loading branch information
stirante committed Jun 24, 2023
1 parent 5114de3 commit d651e5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion regolith/install_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,14 @@ func ListRemoteFilterTags(url, name string) ([]string, error) {
}
strippedTag := tag[len(name)+1:]
if semver.IsValid("v" + strippedTag) {
tags = append(tags, tag)
tags = append(tags, "v"+strippedTag)
}
}
}
semver.Sort(tags)
for i, tag := range tags {
tags[i] = name + "-" + tag[1:]
}
return tags, nil
}

Expand Down

0 comments on commit d651e5b

Please sign in to comment.