aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/api/goapi.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-03-11 15:53:42 -0400
committerRuss Cox <rsc@golang.org>2012-03-11 15:53:42 -0400
commitcd7ae05d52e4434453be9a4af2888aedc75330aa (patch)
treed4d7b282249dea59907cf7310c5caf212a1cffca /src/cmd/api/goapi.go
parentc3954dd5da820306dff6bbd73a7801d9739b038f (diff)
downloadgo-cd7ae05d52e4434453be9a4af2888aedc75330aa.tar.xz
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
Diffstat (limited to 'src/cmd/api/goapi.go')
0 files changed, 0 insertions, 0 deletions