Skip to content

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

Description

@rylev

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions