]> Cypherpunks repositories - gostls13.git/commitdiff
undo CL 87300043 / 1dc800571456
authorAndrew Gerrand <adg@golang.org>
Tue, 15 Apr 2014 00:20:04 +0000 (10:20 +1000)
committerAndrew Gerrand <adg@golang.org>
Tue, 15 Apr 2014 00:20:04 +0000 (10:20 +1000)
This breaks "go get -d repo/path/...".

««« original CL description
cmd/go: do not miss an error if import path contains "cmd/something"

Fixes #7638

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/87300043
»»»

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/87890043

src/cmd/go/get.go

index fb9a4ae2350d9858ba49451d5b749573d5cb351f..e61da7e2ad270a6b8be698fcbfcaac89c4868a1e 100644 (file)
@@ -143,10 +143,6 @@ 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 {