Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot go get install #821

Closed
andyafter opened this issue May 21, 2018 · 2 comments
Closed

Cannot go get install #821

andyafter opened this issue May 21, 2018 · 2 comments

Comments

@andyafter
Copy link

I am installing with go get -u ... from OSX and I get this

# cd /Users/andy.pan/gopath/src/golang.org/x/tools; git pull --ff-only
fatal: Not possible to fast-forward, aborting.
package golang.org/x/tools/go/gcexportdata: exit status 128

Might be just some simple issue but could anyone help me with this?

@dmitshur
Copy link
Member

It looks like your golang.org/x/tools history has diverged from upstream for some reason. Either you made some local changes to it, or the upstream has force-pushed an incompatible commit (less likely).

The fix is simple. Make sure you don’t have any work you might lose in the golang.org/x/tools repository, and simply remove it. Alternatively, you can reset it:

cd /Users/andy.pan/gopath/src/golang.org/x/tools
git checkout master
git reset --hard origin/master

Then you can try go get -u github.com/gopherjs/gopherjs again.

@andyafter
Copy link
Author

Oh that actually worked!!! Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants