`go get -u` broken for tool-only projects

Under normal conditions, go.mod provides a practical IaC solution for Go CLI tools, in both Go and non-Go projects.

However, the standard go get -u ./… command to update dependencies in go.mod, fails to work in non-Go projects where there is no first party Go package.

Please decouple go get -u from the assumption that a Go package must exist. When absent, silently ignore that fact and focus on simply updating the depedencies directly in go.mod.

You’ll get better response if you file that at GitHub · Where software is built.

2 Likes