-
Notifications
You must be signed in to change notification settings - Fork 12
update.sh: fix to work with all shells and gopherjs 1.10-3. #70
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ cleanup() { | |
| exit | ||
| } | ||
|
|
||
| trap cleanup EXIT SIGHUP SIGINT SIGTERM | ||
| trap cleanup EXIT HUP INT TERM | ||
|
|
||
| go install github.com/gopherjs/gopherjs/... | ||
|
|
||
|
|
@@ -20,18 +20,15 @@ gopherjs build -m | |
| # The GOPATH workspace where the GopherJS project is. | ||
| gopherjsgopath=$(go list -f '{{.Root}}' github.com/gopherjs/gopherjs) | ||
|
|
||
| rm -r pkg/ | ||
| rm -rf pkg/ | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the previous
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is good. |
||
|
|
||
| # Use an empty GOPATH workspace with just gopherjs, | ||
| # so that all the standard library packages get written to GOROOT/pkg. | ||
| export GOPATH="$tmp/gopath" | ||
| mkdir -p "$GOPATH"/src/github.com/gopherjs/gopherjs | ||
| cp -a "$gopherjsgopath"/src/github.com/gopherjs/gopherjs/* "$GOPATH"/src/github.com/gopherjs/gopherjs | ||
|
|
||
| gopherjs install -m github.com/gopherjs/gopherjs/js github.com/gopherjs/gopherjs/nosync | ||
| mkdir -p pkg/github.com/gopherjs/gopherjs | ||
| cp "$GOPATH"/pkg/*_js_min/github.com/gopherjs/gopherjs/js.a pkg/github.com/gopherjs/gopherjs/js.a | ||
| cp "$GOPATH"/pkg/*_js_min/github.com/gopherjs/gopherjs/nosync.a pkg/github.com/gopherjs/gopherjs/nosync.a | ||
| mkdir pkg | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, worked fine locally for me. But I suspect my answer has something to do with that?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I see. Can you elaborate on how you tested it locally?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Subject to the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't reproduce your results. If I remove the Maybe you didn't clear your browser's cache?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did the following (recreating the root-owned Then went to http://localhost:8080/github.com/gopherjs/gopherjs.github.io/playground/ and did an "Empty Cache and Hard Reload" in Chrome and that page, which imports Am I following the right steps? For me
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for providing more information. Can you check, after you do Based on the steps you're following... Maybe what's happening is that you already have a built
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That's expected, it's there for the playground itself.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good point.
Yes there are. I've also just run the steps above but with a writable But I don't think this is surprising because after the and because some of the natives depend on I think this adds up now? Incidentally, do the steps in #70 (comment) not work for you? |
||
|
|
||
| # Make a copy of GOROOT that is user-writeable, | ||
| # use it to build and copy out standard library packages. | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all shells understand the
SIGprefix.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is good.