Skip to content

Feature: rebuild with newer toolchain if available, even if version same #154

@scop

Description

@scop

Is your feature request related to a problem?

Even if an executable is up to date with the latest upstream, it may have been built with an older version of the Go toolchain than what is available on the system. Newer toolchains may fix bugs, improve performance etc in executables even if the upstream version has not changed.

Describe the solution you'd like

gup to take build and available toolchain versions into effect on check and update.

So if tool X is installed but built let's say with Go 1.22.2 and the system has Go 1.22.4 available, rebuild X with 1.22.4 as an update even if the upstream version does not change. And similarly for check.

Describe alternatives you've considered

Manually removing and reinstalling all executables when upgrading Go.

Additional context

https://pkg.go.dev/runtime/debug#BuildInfo GoVersion

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