]> Cypherpunks repositories - gostls13.git/commit
cmd/go: local import fixes
authorRuss Cox <rsc@golang.org>
Sun, 11 Mar 2012 19:53:42 +0000 (15:53 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 11 Mar 2012 19:53:42 +0000 (15:53 -0400)
commitcd7ae05d52e4434453be9a4af2888aedc75330aa
treed4d7b282249dea59907cf7310c5caf212a1cffca
parentc3954dd5da820306dff6bbd73a7801d9739b038f
cmd/go: local import fixes

1) The -D argument should always be a pseudo-import path,
like _/Users/rsc/foo/bar, never a standard import path,
because we want local imports to always resolve to pseudo-paths.

2) Disallow local imports in non-local packages.  Otherwise
everything works but you get two copies of a package
(the real one and the "local" one) in your binary.

R=golang-dev, bradfitz, yiyu.jgl
CC=golang-dev
https://golang.org/cl/5787055
src/cmd/go/build.go
src/cmd/go/pkg.go