Skip to content

Commit

Permalink
cmd/go: do not miss an error if import path contains "cmd/something"
Browse files Browse the repository at this point in the history
Fixes #7638

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/87300043
  • Loading branch information
atomsymbol-notifications committed Apr 14, 2014
1 parent eb00dfb commit 3f529f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd/go/get.go
Expand Up @@ -143,6 +143,10 @@ var downloadRootCache = map[string]bool{}
// for the package named by the argument.
func download(arg string, stk *importStack, getTestDeps bool) {
p := loadPackage(arg, stk)
if p.Error != nil {
errorf("%s", p.Error)
return
}

// There's nothing to do if this is a package in the standard library.
if p.Standard {
Expand Down

0 comments on commit 3f529f8

Please sign in to comment.