]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make malformed import path message more precise
authorRuss Cox <rsc@golang.org>
Fri, 26 Sep 2014 17:47:51 +0000 (13:47 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 26 Sep 2014 17:47:51 +0000 (13:47 -0400)
commitb86105e80da7fd994656f134d006a700fe037fc2
tree4edc1fb149ff125dd53e3560e366724640fe1ff6
parentf3a98dee27540afab414d3201aff18f30c2b163e
cmd/go: make malformed import path message more precise

If you say 'go get -v' you get extra information when import
paths are not of the expected form.

If you say 'go get -v src/rsc.io/pdf' the message says that
src/rsc.io/pdf does not contain a hostname, which is incorrect.
The problem is that it does not begin with a hostname.

Fixes #7432.

LGTM=r
R=golang-codereviews, r
CC=bradfitz, golang-codereviews, iant
https://golang.org/cl/144650043
src/cmd/go/vcs.go