Skip to content

resto incorrectly reports an update is available #126

Open
@halostatue

Description

@halostatue
$ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions