It seems the repository has moved from golang.org/x/tools/astutil
to golang.org/x/tools/go/ast/astutil
I'm trying to build gore
but it cannot found the astutil
, I have the workaround to get it compiled:
mkdir $GOPATH/src/golang.org/x/tools/go/ast
ln -s $GOPATH/src/golang.org/x/tools/astutil $GOPATH/src/golang.org/x/tools/go/ast
but is this the correct way to fix this?
I've tried to remove the x/tools
directory and fetch it again, using this command:
rm -rf $GOPATH/src/golang.org/x/tools
go get -u -v golang.org/x/tools
but astutil
still on the same directory (x/tools/go/astutil
) instead of x/tools/go/ast/astutil
I've tried to go get -u -v golang.org/x/tools/go/ast/astutil
but it seems not working:
Fetching https://golang.org/x/tools/go/ast/astutil?go-get=1
Parsing meta tags from https://golang.org/x/tools/go/ast/astutil?go-get=1
(status code 200)
get "golang.org/x/tools/go/ast/astutil?": found meta tag
main.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"
https://go.googlesource.com/tools"} at
https://golang.org/x/tools/go/ast/astutil?go-get=1
get "golang.org/x/tools/go/ast/astutil?": verifying non-authoritative meta
tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
golang.org/x/tools (download)
package golang.org/x/tools/go/ast/astutil?: /home/asd/Dropbox/go/src/
golang.org/x/tools exists but /home/asd/Dropbox/go/src/
golang.org/x/tools/.git does not - stale checkout?
What's the correct way to fix this?
My go version: go version go1.4.1 linux/amd64