]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: don't print 'go get' deprecation notices in the main module
authorJay Conrod <jayconrod@google.com>
Mon, 10 May 2021 21:19:50 +0000 (17:19 -0400)
committerJay Conrod <jayconrod@google.com>
Mon, 17 May 2021 16:02:12 +0000 (16:02 +0000)
commitb1aff42900133e4fbc9b7d7c1af13c77e4f647b0
treea0a98389f6da38bee974639904a0b7e359aa46a4
parentbade680867c9b1eecc7b5d177ed94c455a72e50a
cmd/go: don't print 'go get' deprecation notices in the main module

If a user runs 'go get example.com/cmd' for a package in the main
module, it's more likely they intend to fill in missing dependencies
for that package (especially with -u). If the intent were only to
build and install, 'go install example.com/cmd' would be a better
choice.

For #43684

Resolving a comment on CL 305670.

Change-Id: I5c80ffdcdb3425b448f2f49cc20b07a18cb2bbe9
Reviewed-on: https://go-review.googlesource.com/c/go/+/318570
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>
src/cmd/go/internal/modget/get.go
src/cmd/go/testdata/script/mod_get_deprecate_install.txt