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

[14.0.0] Add support for :: in --dir to old CLI #7421

Merged

Conversation

alexcrichton
Copy link
Member

This is a backport of #7416 to the 14.0.0 branch

In Wasmtime 13 and prior the `--dir` argument was unconditionally used
to open a host dir as the same name and in the guest. In Wasmtime 14+
though this argument is being repurposed with an optional trailing
`::GUEST` to configure the guest directory. This means that
`--dir`-with-remapping behavior is actually unusable without the
environment variable configuration from bytecodealliance#7385 due to it parsing
differently in the old and the new.

This commit updates the situation by adding `::`-parsing to the old CLI
meaning that both the old and the new parse this the same way. This will
break any scripts that open host directories with two colons in their
path, but that seems niche enough we can handle that later.
@alexcrichton alexcrichton requested a review from a team as a code owner October 31, 2023 15:38
@alexcrichton alexcrichton requested review from pchickey and removed request for a team October 31, 2023 15:38
@alexcrichton alexcrichton merged commit b1bdcc1 into bytecodealliance:release-14.0.0 Oct 31, 2023
@alexcrichton alexcrichton deleted the another-backport branch October 31, 2023 16:33
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

Successfully merging this pull request may close these issues.

2 participants