]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: do not report Target for local imports
authorRuss Cox <rsc@golang.org>
Thu, 15 Mar 2012 19:08:57 +0000 (15:08 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 15 Mar 2012 19:08:57 +0000 (15:08 -0400)
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5820064

src/pkg/go/build/build.go

index ba3bfdf9a0fcc03d4c90d7521dd87ace03b25530..bf9801c8028dfc925c870889f62e3885895e3c2f 100644 (file)
@@ -363,6 +363,7 @@ func (ctxt *Context) Import(path string, srcDir string, mode ImportMode) (*Packa
 
        binaryOnly := false
        if IsLocalImport(path) {
+               pkga = "" // local imports have no installed path
                if srcDir == "" {
                        return p, fmt.Errorf("import %q: import relative to unknown directory", path)
                }