Commit 25c8d4e9 authored by Scott Lawrence's avatar Scott Lawrence Committed by Andrew Gerrand

goinstall: warn when http:// is found at beginning of package name

Fixes #860.

R=golang-dev, adg1, rsc, adg
CC=golang-dev
https://golang.org/cl/2124046
parent 3e8cc7f1
......@@ -148,6 +148,11 @@ func install(pkg, parent string) {
// If remote, download or update it.
var dir string
local := false
if strings.HasPrefix(pkg, "http://") {
fmt.Fprintf(os.Stderr, "%s: %s: 'http://' used in remote path, try '%s'\n", argv0, pkg, pkg[7:])
errors = true
return
}
if isLocalPath(pkg) {
dir = pkg
local = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment