resto icon indicating copy to clipboard operation
resto copied to clipboard

resto incorrectly reports an update is available

Open halostatue opened this issue 2 years ago • 1 comments

$ go install github.com/abdfnx/resto@latest
$ resto version
resto version

There's a new version of resto is avalaible:  → v0.1.6
To upgrade, run: go get -u github.com/abdfnx/resto

This can be avoided with

$ go install -ldflags "-X main.version=v0.1.6 -X main.buildDate="(date +%Y-%m-%d) github.com/abdfnx/resto@latest
$ resto version
resto version 0.1.6 2023-04-15

I’m not entirely sure what the right answer is given that you are using goreleaser to automatically apply the version number, but for those of us who prefer to go install… instead of brew install, it would be ideal to not have a spurious upgrade report with no real solution.

halostatue avatar Apr 15 '23 04:04 halostatue

Hi @halostatue, You're right, I was trying to fix this issue from a long time, don't worry I'll fix it

abdfnx avatar Apr 15 '23 09:04 abdfnx