summaryrefslogtreecommitdiff
path: root/src/cmd/api
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2014-11-10 09:13:04 +1100
committerAndrew Gerrand <adg@golang.org>2014-11-10 09:13:04 +1100
commit00f9c7b0d78e148c2010d0487c8bdb761bd8b147 (patch)
tree4cdf1ff2830faf84500b2c0561d969eb05e9c2c4 /src/cmd/api
parentd3d1ca75b1456292417780f7956f4f3f51df3298 (diff)
downloadgo-00f9c7b0d78e148c2010d0487c8bdb761bd8b147.tar.gz
cmd/api: use golang.org/x/... import paths
LGTM=bradfitz, rsc R=rsc, bradfitz CC=golang-codereviews https://codereview.appspot.com/169000043
Diffstat (limited to 'src/cmd/api')
-rw-r--r--src/cmd/api/goapi.go2
-rw-r--r--src/cmd/api/run.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go
index 5a8c87603..49e592d0c 100644
--- a/src/cmd/api/goapi.go
+++ b/src/cmd/api/goapi.go
@@ -27,7 +27,7 @@ import (
"sort"
"strings"
- "code.google.com/p/go.tools/go/types"
+ "golang.org/x/tools/go/types"
)
// Flags
diff --git a/src/cmd/api/run.go b/src/cmd/api/run.go
index c323deb60..52b23de45 100644
--- a/src/cmd/api/run.go
+++ b/src/cmd/api/run.go
@@ -91,7 +91,7 @@ func file(s ...string) string {
// It tries to re-use a go.tools checkout from a previous run if possible,
// else it hg clones it.
func prepGoPath() string {
- const tempBase = "go.tools.TMP"
+ const tempBase = "tools.TMP"
username := ""
u, err := user.Current()
@@ -108,14 +108,14 @@ func prepGoPath() string {
gopath := filepath.Join(os.TempDir(), "gopath-api-"+cleanUsername(username), goToolsVersion)
// cloneDir is where we run "hg clone".
- cloneDir := filepath.Join(gopath, "src", "code.google.com", "p")
+ cloneDir := filepath.Join(gopath, "src", "golang.org", "x")
// The dir we clone into. We only atomically rename it to finalDir on
// clone success.
tmpDir := filepath.Join(cloneDir, tempBase)
// finalDir is where the checkout will live once it's complete.
- finalDir := filepath.Join(cloneDir, "go.tools")
+ finalDir := filepath.Join(cloneDir, "tools")
if goToolsCheckoutGood(finalDir) {
return gopath