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

Wasm components dependencies are case sensitive which can cause confusion #60

Open
rylev opened this issue Mar 20, 2024 · 0 comments
Open

Comments

@rylev
Copy link
Collaborator

rylev commented Mar 20, 2024

With a wac file that contains a reference to a dependency named foo:bar-baz, wac will look in the deps folder under a foo directory for a bar-baz.wasm file. However, if there is a difference in casing or a mix up in - vs _ (e.g., bar_baz.wasm - the casing many toolchains will prefer to use for output binaries), the file will not be found.

At the very least, I think we could emit a warning when a file exists and only differs from the expected name in small ways. However, we may want to look for files with _ instead of - as there shouldn't be any ambiguity between the two.

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

No branches or pull requests

1 participant