-
Notifications
You must be signed in to change notification settings - Fork 570
GopherJS writes to GOPATH workspace when doing build. #61
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
Comments
Yes, this difference is on purpose. The core packages of normal Go in GOROOT are already compiled when you install it, so GopherJS on the other hand has to compile everything. Most users will use Do you see a downside in this behaviour? |
I see now that you try to install the core packages (i.e., from GOROOT). I thought it was installing the actual package you're building too. This was primarily a problem because of the other issue #60. Once that's fixed, this behavior may be okay as is.
How do you find out whether the existing files need to be updated (e.g., because of a newer GopherJS version) or can be safely reused instead? |
Timestamps. See |
It seems the CLI interface tries to mimic the go command. But it has an unexpected difference. The go command only writes stuff to your $GOPATH/pkg when you do
go install
, but it uses temporary folders when you dogo build
.Using
gopherjs build
seems to write to my $GOPATH/pkg every time.The text was updated successfully, but these errors were encountered: