You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to create a list of all commands related to go modules
What did you expect to see?
I expected to see all go modules related operations beign available though "go mod" tool
What did you see instead?
Different tools providing go modules related operations:
go list -m all
go list -u -m all
go get -u
go get -u=patch
go clean -modcache
go mod tidy
go mod vendor
While this behavior is documented in go mod help:
Go mod provides access to operations on modules.
Note that support for modules is built into all the go commands,
not just 'go mod'. For example, day-to-day adding, removing, upgrading,
and downgrading of dependencies should be done using 'go get'.
See 'go help modules' for an overview of module functionality.
and even though I understand the rationale behind having modules related functionality in different tools, I believe it is very confusing especially for new Go developers that didn't follow the progress of introducing modules to the language and they are not aware of Go's tooling philosophy.
Having one point of reference for all go modules related operations will increase developer experience significantly.
The text was updated successfully, but these errors were encountered:
@psampaz, the fact that module support is integrated into all aspects of the go command is fundamental to its design.
As it stands today, every go command that you run within a module should have a reproducible result, and if a new dependency is needed, rather than the go command telling you some exact command that you would need to run to fix the problem, it just fixes it directly.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I tried to create a list of all commands related to go modules
What did you expect to see?
I expected to see all go modules related operations beign available though "go mod" tool
What did you see instead?
Different tools providing go modules related operations:
go list -m all
go list -u -m all
go get -u
go get -u=patch
go clean -modcache
go mod tidy
go mod vendor
While this behavior is documented in go mod help:
and even though I understand the rationale behind having modules related functionality in different tools, I believe it is very confusing especially for new Go developers that didn't follow the progress of introducing modules to the language and they are not aware of Go's tooling philosophy.
Having one point of reference for all go modules related operations will increase developer experience significantly.
The text was updated successfully, but these errors were encountered: