Skip to content

Commit bc17b13

Browse files
committed
WIP: Use embedded js, nosync packages.
For now, try to use pre-built js.a and nosync.a until we can figure out a good way to build them in a normal way. Try to do this in order to make progress in CI and see what next steps need to be taken.
1 parent 23ff04b commit bc17b13

File tree

7 files changed

+71
-12
lines changed

7 files changed

+71
-12
lines changed

cmd/go/go_bundle.go

Lines changed: 18 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmdgo_bundle.go

Lines changed: 18 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compiler/natives/fs.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ func importPathToDir(importPath string) string {
2424
var FS = filter.Keep(
2525
http.Dir(importPathToDir("github.com/gopherjs/gopherjs/compiler/natives")),
2626
func(path string, fi os.FileInfo) bool {
27-
return path == "/" || path == "/src" || strings.HasPrefix(path, "/src/")
27+
return path == "/" || path == "/src" || strings.HasPrefix(path, "/src/") ||
28+
path == "/pkg" || strings.HasPrefix(path, "/pkg/") // TODO: pkg folder is avoidable.
2829
},
2930
)

0 commit comments

Comments
 (0)