Skip to content

Add support for :: in --dir to old CLI#7416

Merged
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-double-colon-in-dir
Oct 31, 2023
Merged

Add support for :: in --dir to old CLI#7416
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-double-colon-in-dir

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

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 #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.

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 30, 2023 21:33
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team October 30, 2023 21:33
@fitzgen fitzgen added this pull request to the merge queue Oct 30, 2023
Merged via the queue into bytecodealliance:main with commit 698952b Oct 31, 2023
@alexcrichton alexcrichton deleted the fix-double-colon-in-dir branch October 31, 2023 15:34
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Oct 31, 2023
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 added a commit that referenced this pull request Oct 31, 2023
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 #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.
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