]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: make hints in error messages more consistent
authorJay Conrod <jayconrod@google.com>
Thu, 7 Jan 2021 16:14:06 +0000 (11:14 -0500)
committerJay Conrod <jayconrod@google.com>
Fri, 8 Jan 2021 20:19:51 +0000 (20:19 +0000)
commit6192b9875128c5f53a69b959d5a1abf0f10ae93f
treec39777eb78c5c3309578cd8bd7758989fd9901ac
parent25886cf4bd28be373afb80a4c068a785b43bdddf
cmd/go: make hints in error messages more consistent

* All commands the user can run to fix the problem now appear alone on
  a separate line after a tab.
* Removed -d from 'go get' commands.
* Replaced 'go mod tidy' with 'go mod download $modpath' when a
  package might be provided by a module missing a sum.
* Errors about 'path@version' syntax are more explicit.

Fixes #29415
Fixes #42087
Fixes #43430
Fixes #43523

Change-Id: I4427c2c4506a727a2c727d652fd2d506bb134d3b
Reviewed-on: https://go-review.googlesource.com/c/go/+/282121
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
17 files changed:
src/cmd/go/go_test.go
src/cmd/go/internal/get/get.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/modget/get.go
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/modload/vendor.go
src/cmd/go/internal/test/testflag.go
src/cmd/go/testdata/script/mod_get_promote_implicit.txt
src/cmd/go/testdata/script/mod_get_retract.txt
src/cmd/go/testdata/script/mod_invalid_path.txt
src/cmd/go/testdata/script/mod_sum_ambiguous.txt
src/cmd/go/testdata/script/mod_sum_readonly.txt
src/cmd/go/testdata/script/mod_vendor_auto.txt
src/cmd/go/testdata/script/mod_versions.txt
src/cmd/go/testdata/script/test_flag.txt