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

Broken WASM builds #186

Open
hsanjuan opened this issue Feb 25, 2023 · 2 comments
Open

Broken WASM builds #186

hsanjuan opened this issue Feb 25, 2023 · 2 comments
Labels
need/maintainers-input Needs input from the current maintainer(s) need/triage Needs initial labeling and prioritization status/blocked Unable to be worked further until needs are met

Comments

@hsanjuan
Copy link
Contributor

Using latest versions of things I discovered that WASM builds are now broken.

# github.com/ipfs/go-libipfs/files
../../../../pkg/mod/github.com/ipfs/[email protected]/files/filewriter.go:25:13: undefined: createNewFile
../../../../pkg/mod/github.com/ipfs/[email protected]/files/filewriter.go:47:6: undefined: isValidFilename

I would normally be able to just use an older version of go-ipfs-files, but it was deprecated and now dependencies are only pulling the broken code present in libipfs.

I cannot think of a workaround in terms of dependency management that can fix this, is there one?

@hsanjuan hsanjuan added the need/triage Needs initial labeling and prioritization label Feb 25, 2023
@aschmahmann
Copy link
Contributor

I cannot think of a workaround in terms of dependency management that can fix this, is there one?

Off the top of my head Go vendoring almost always lets you fix the problem. However, given how small the fix is here I would just make that patch rather than trying to use an older version of the library that has other bugs in it.

WASM builds of this library aren't supported, but (as with other unsupported platforms) fixes are definitely welcome. If you'd like to fix the issue you can do so in a similar manner to ipfs/go-ipfs-files#50.

@lidel
Copy link
Member

lidel commented Jun 25, 2024

Triage notes:

  • Maintainers are concerned how future-proof this is, and IF we want to officially support WASM target
    • We need a policy on WARM.

@lidel lidel added need/maintainers-input Needs input from the current maintainer(s) status/blocked Unable to be worked further until needs are met labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/maintainers-input Needs input from the current maintainer(s) need/triage Needs initial labeling and prioritization status/blocked Unable to be worked further until needs are met
Projects
None yet
Development

No branches or pull requests

3 participants