wac icon indicating copy to clipboard operation
wac copied to clipboard

Wasm components dependencies are case sensitive which can cause confusion

Open rylev opened this issue 1 year ago • 0 comments

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.

rylev avatar Mar 20 '24 13:03 rylev