From ed31b359c0966921570619c3a8c68d7a7edac5ac Mon Sep 17 00:00:00 2001 From: David Barroso Date: Fri, 19 Apr 2024 12:24:06 +0200 Subject: [PATCH] fix: don't remove `v` from the version (#866) --- Makefile | 2 +- software/sofware.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0b2a35374..8a8cdaa2f 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/software/sofware.go b/software/sofware.go index 9329297f4..ab37ebd90 100644 --- a/software/sofware.go +++ b/software/sofware.go @@ -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) }