-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
gup version
v0.28.0
Description (About the problem)
When Go is installed via mise, both standard Go commands (e.g., go, gofmt) and user-installed binaries share the same directory under $GOBIN.
Because of this, gup update tries to update Go’s standard library commands as if they were third-party binaries.
This results in errors such as:
gup:ERROR: [1/7]gofmt: can't install cmd/gofmt:
go: cmd/gofmt@latest: argument must not be a package in the standard library
gup:ERROR: [2/7]go: can't install cmd/go:
go: cmd/go@latest: argument must not be a package in the standard library
Steps to reproduce
-
Install Go via mise.
-
Ensure
$GOBINpoints to the Go installation directory, e.g.:/home/<user>/.local/share/mise/installs/go/1.25.3/bin -
Install
gupusinggo install github.com/nao1215/gup@latest -
Run:
gup update -
Observe the error output for
cmd/goandcmd/gofmt.
Expected behavior
gup update should automatically ignore or skip binaries that belong to the Go standard library (cmd/go, cmd/gofmt) when they are found in $GOBIN.
Additional details
- OS: Ubuntu (Linux x86_64)
- Go version: 1.25.3 (installed via mise)
- GOBIN:
/home/nao/.local/share/mise/installs/go/1.25.3/bin - gup: v0.28.0
Possible improvements:
- Detect and skip standard Go commands automatically.
Drew-Daniels
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers