This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by nchika
gup command update binaries installed by "go install" to the latest version. gup updates all binaries in parallel, so very fast. It also provides subcommands for manipulating binaries under $GOPATH/bin ($GOBIN).
gup is a cross-platform software that runs on Windows, Mac and Linux. gup exists in the go awesome list and many unit tests have been written!!
How to install
Use "go install"
If you does not have the golang development environment installed on your system, please install golang from the golang official website.
$ go install github.com/nao1215/gup@latest
Install from Package or Binary
The release page contains packages in .deb, .rpm, and .apk formats. gup command uses the go command internally, so the golang installation is required.
How to use
Update all binaries
If you update all binaries, you just run $ gup update
.
$ gup update
gup:INFO : update binary under $GOPATH/bin or $GOBIN
gup:INFO : [ 1/30] github.com/cheat/cheat/cmd/cheat (Already up-to-date: v0.0.0-20211009161301-12ffa4cb5c87)
gup:INFO : [ 2/30] fyne.io/fyne/v2/cmd/fyne_demo (Already up-to-date: v2.1.3)
gup:INFO : [ 3/30] github.com/nao1215/gal/cmd/gal (v1.0.0 to v1.2.0)
gup:INFO : [ 4/30] github.com/matsuyoshi30/germanium/cmd/germanium (Already up-to-date: v1.2.2)
gup:INFO : [ 5/30] github.com/onsi/ginkgo/ginkgo (Already up-to-date: v1.16.5)
gup:INFO : [ 6/30] github.com/git-chglog/git-chglog/cmd/git-chglog (Already up-to-date: v0.15.1)
:
:
Update the specified binary
If you want to update only the specified binaries, you specify multiple command names separated by space.
$ gup update subaru gup ubume
gup:INFO : update binary under $GOPATH/bin or $GOBIN
gup:INFO : [1/3] github.com/nao1215/gup (v0.7.0 to v0.7.1)
gup:INFO : [2/3] github.com/nao1215/subaru (Already up-to-date: v1.0.2)
gup:INFO : [3/3] github.com/nao1215/ubume/cmd/ubume (Already up-to-date: v1.4.1)
Conclusion
If you use tools written in Golang, gup can be very helpful.
This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by nchika
nchika | Sciencx (2022-11-10T17:35:24+00:00) gup – Update binaries installed by “go install” with goroutines.. Retrieved from https://www.scien.cx/2022/11/10/gup-update-binaries-installed-by-go-install-with-goroutines/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.