]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: say to confirm import path when it's not found
authorTyler Bui-Palsulich <tbp@google.com>
Fri, 26 Apr 2019 18:49:41 +0000 (14:49 -0400)
committerJay Conrod <jayconrod@google.com>
Tue, 30 Apr 2019 15:03:35 +0000 (15:03 +0000)
Fixes #31366.

Change-Id: Ief26f53e7fe94bedb7db79d3d7130c4cdcec4281
Reviewed-on: https://go-review.googlesource.com/c/go/+/174179
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/internal/modfetch/codehost/git.go
src/cmd/go/testdata/script/mod_get_private_vcs.txt

index 588e7496cc50362ddbce4304d84fc36a8311d970..2cb6637aae8f3fe6fa661b6860543b8b7be957d7 100644 (file)
@@ -166,7 +166,7 @@ func (r *gitRepo) loadRefs() {
        if err != nil {
                if rerr, ok := err.(*RunError); ok {
                        if bytes.Contains(rerr.Stderr, []byte("fatal: could not read Username")) {
-                               rerr.HelpText = "If this is a private repository, see https://golang.org/doc/faq#git_https for additional information."
+                               rerr.HelpText = "Confirm the import path was entered correctly.\nIf this is a private repository, see https://golang.org/doc/faq#git_https for additional information."
                        }
                }
                r.refsErr = err
index 86d78e8381396c37bacca4f5db5e90a709b3f35a..1c73182206d44f99c9d7aec0e0329a2aadd38746 100644 (file)
@@ -6,5 +6,6 @@ env GO111MODULE=on
 env GOPROXY=
 
 ! go get github.com/golang/nonexist
+stderr 'Confirm the import path was entered correctly.'
 stderr 'If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.'
 ! stdout .