forked from mvdan/sh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Versions 0.3.2 and 0.3.3 were published in the master branch, to follow the latest 2.6.x changes in the mvdan.cc/sh module itself. The master.v3 branch has had quite a bit of work done that isn't in the old v2 versions, so let's start updating NPM from this branch. A few tweaks were necessary to get the module-aware gopherjs building properly. Otherwise, everything works like it used to in the master branch.
- Loading branch information
Showing
3 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
#!/bin/sh | ||
|
||
# If you get weird errors like 'undeclared name: CacheLinePadSize', try being | ||
# explicit about the Go 1.11.x GOROOT, like: | ||
# | ||
# GOROOT=/usr/lib/go ./build | ||
|
||
export GO111MODULE=on # build in module-aware mode | ||
|
||
gopherjs build -o index.js || exit 1 | ||
|
||
node testmain.js || exit 1 | ||
|
||
go mod tidy # to remove unnecessary gopherjs lines from go.mod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters