]> Cypherpunks repositories - gostls13.git/commit
cmd/go: improve error message when import path contains http://
authorRob Pike <r@golang.org>
Tue, 27 May 2014 21:37:36 +0000 (14:37 -0700)
committerRob Pike <r@golang.org>
Tue, 27 May 2014 21:37:36 +0000 (14:37 -0700)
commit7f638e90231e56c523ae51ba18dbbf084db8b86e
tree554028277a462b042df7fba6a9619ad0ef87d736
parent0a8ce65c7a32f991e6a147165c2d0ff86b1db2f6
cmd/go: improve error message when import path contains http://
Common mistake (at least for me) because hg etc. require the prefix
while the go command forbids it.

Before:
% go get http://code.google.com/p/go.text/unicode/norm
package http:/code.google.com/p/go.text/unicode/norm: unrecognized import path "http:/code.google.com/p/go.text/unicode/norm"

After:
% go get http://code.google.com/p/go.text/unicode/norm
package http:/code.google.com/p/go.text/unicode/norm: "http://" not allowed in import path

LGTM=ruiu, rsc
R=rsc, ruiu
CC=golang-codereviews
https://golang.org/cl/97630046
src/cmd/go/vcs.go