-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix build for GOARCH=wasm with GOOS=js or GOOS=wasip1 #2048
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for badger-docs canceled.
|
This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open. |
Still relevant |
@paralin could you rebase the PR on latest |
126017e
to
1956019
Compare
@mangalaman93 I rebased it. The tests do not pass since mmap fails on wasm. I think there would need to be conditional logic to not use mmap on wasm / js for this to actually be usable. But at least it compiles on these platforms now, with stubs. |
Fixes the following build failures: GOOS=js GOARCH=wasm go build ./... GOOS=wasip1 GOARCH=wasm go build ./... Depends on: dgraph-io/ristretto#375 Signed-off-by: Christian Stewart <[email protected]>
Rebased again. I think this is still good to merge, even though js does not work properly, at least it builds cleanly. |
Fixes the following build failures:
GOOS=js GOARCH=wasm go build ./...
GOOS=wasip1 GOARCH=wasm go build ./...
Depends on: dgraph-io/ristretto#375