Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paralin
Copy link
Contributor

@paralin paralin commented Feb 21, 2024

Fixes the following build failures:

GOOS=js GOARCH=wasm go build ./...
GOOS=wasip1 GOARCH=wasm go build ./...

Depends on: dgraph-io/ristretto#375

@paralin paralin requested a review from a team as a code owner February 21, 2024 04:10
Copy link

netlify bot commented Feb 21, 2024

Deploy Preview for badger-docs canceled.

Name Link
🔨 Latest commit e12c4ce
🔍 Latest deploy log https://app.netlify.com/sites/badger-docs/deploys/67209eb20461740008178cf4

Copy link

This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

@github-actions github-actions bot added the Stale label Jul 12, 2024
@paralin
Copy link
Contributor Author

paralin commented Jul 12, 2024

Still relevant

@mangalaman93
Copy link
Contributor

@paralin could you rebase the PR on latest main branch? We have merged the ristretto PR and badger has the latest changes now.

@mangalaman93 mangalaman93 self-assigned this Oct 14, 2024
@paralin paralin force-pushed the fix-wasm branch 2 times, most recently from 126017e to 1956019 Compare October 14, 2024 20:19
@paralin
Copy link
Contributor Author

paralin commented Oct 14, 2024

@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]>
@paralin
Copy link
Contributor Author

paralin commented Oct 29, 2024

Rebased again. I think this is still good to merge, even though js does not work properly, at least it builds cleanly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants