abdfnx / resto

🔗 Send pretty HTTP & API requests with TUI.
MIT License
234 stars 14 forks source link

resto incorrectly reports an update is available #126

Open halostatue opened 1 year ago

halostatue commented 1 year ago
$ 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.

abdfnx commented 1 year ago

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