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

x/mobile/cmd/gomobile: init fails if $GOROOT/pkg doesn't exit #11304

Closed
rakyll opened this issue Jun 19, 2015 · 1 comment
Closed

x/mobile/cmd/gomobile: init fails if $GOROOT/pkg doesn't exit #11304

rakyll opened this issue Jun 19, 2015 · 1 comment

Comments

@rakyll
Copy link
Contributor

rakyll commented Jun 19, 2015

If there is no $GOROOT/pkg directory, gomobile init fails with "Make GOROOT writable" error message.

$ rm -rf $GOROOT/pkg
$ gomobile init
gomobile: Cannot install darwin_arm in GOROOT.
Make GOROOT writable (possibly by becoming the super user, using sudo) and run:
    mv /var/folders/00/1b8h8000h01000cxqpysvccm005d21/T/gomobile-951197045/darwin_arm /Users/jbd/go/pkg

/cc @crawshaw @hyangah

@rakyll rakyll added this to the Unreleased milestone Jun 19, 2015
@rakyll rakyll self-assigned this Jun 19, 2015
@rakyll
Copy link
Contributor Author

rakyll commented Jun 19, 2015

I can't reproduce this issue and the code doesn't seem to have any bugs that might be relevant to this case. I assume my $GOROOT/pkg was in a bad state. Closing the issue, reopen if reproducible.

@rakyll rakyll closed this as completed Jun 19, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
@rsc rsc unassigned rakyll Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants