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.
With a wac file that contains a reference to a dependency named
foo:bar-baz, wac will look in thedepsfolder under afoodirectory for abar-baz.wasmfile. 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.