Skip to content

Commit

Permalink
fix: don't remove v from the version (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop authored Apr 19, 2024
1 parent 44989fa commit ed31b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else
OS?=linux
endif

VER=$(shell echo $(VERSION) | sed -e 's/^v//g' -e 's/\//_/g')
VER=$(shell echo $(VERSION) | sed -e 's/\//_/g')


.PHONY: check
Expand Down
2 changes: 1 addition & 1 deletion software/sofware.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (mgr *Manager) GetReleases(ctx context.Context, version string) (Releases,
for _, release := range releases {
switch {
case release.Prerelease:
case semver.Compare(version, release.TagName) > 0:
case semver.Compare(version, release.TagName) >= 0:
default:
r = append(r, release)
}
Expand Down

0 comments on commit ed31b35

Please sign in to comment.