Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: cmd/go: manage binaries installed in GOBIN #50261

Open
georgettica opened this issue Dec 19, 2021 · 3 comments
Open

proposal: cmd/go: manage binaries installed in GOBIN #50261

georgettica opened this issue Dec 19, 2021 · 3 comments
Labels
Projects
Milestone

Comments

@georgettica
Copy link

@georgettica georgettica commented Dec 19, 2021

As a user, I would like to have a command that iterates through my $GOBIN and checks if all of the packages I installed are in their latest version.
the new go install command is great and allows installing the binaries without changing anything on the machine.

some solutions I can see in mind for this:

  1. have a similar solution of go.mod or a section inside go.mod that relates to binaries so go list can display them and then can be easily iterated on.
  2. create a new go_install.mod specific for this solution
  3. add metadata in the $GOBIN folder on what binary version was installed and the go install will read it when using the --list-outdated flag
  4. other

this issue comes from the fact I have an update command that upgrades all of the components on my machine fairly frequently and rust has https://github.com/nabijaczleweli/cargo-update for that case

@gopherbot gopherbot added this to the Proposal milestone Dec 19, 2021
@georgettica
Copy link
Author

@georgettica georgettica commented Dec 19, 2021

@kortschak
Copy link
Contributor

@kortschak kortschak commented Dec 19, 2021

This can be done with external tooling, for example https://github.com/kortschak/ugbt/.

@seankhliao seankhliao changed the title proposal: cmd/go/internal/work/build: go install will have a --list-outdated flag proposal: cmd/go: manage binaries installed in GOBIN Dec 19, 2021
@georgettica
Copy link
Author

@georgettica georgettica commented Dec 19, 2021

Searched external tooling for a while and didn't find this.

I'll try it out and report back 😀

@ianlancetaylor ianlancetaylor added this to Incoming in Proposals Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Proposals
Incoming
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants