resto
resto copied to clipboard
resto incorrectly reports an update is available
$ 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.
Hi @halostatue, You're right, I was trying to fix this issue from a long time, don't worry I'll fix it