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

Require Wasmtime options come before wasm modules #6946

Conversation

alexcrichton
Copy link
Member

This commit implements a new behavior for the CLI of the wasmtime executable which will require that options for Wasmtime itself come before the wasm module being run. Currently they're allowed to come afterwards, but instead all arguments and flags coming after a module will be interpreted as arguments for the module itself.

This feature has a bit of a storied history at this point, and the breadcrumbs are:

This PR is intended to be landed as a sibling of #6925, another independent overhaul of Wasmtime's own options on the CLI, for the Wasmtime 14.0.0 release. More information about the motivation for this change, as well as consequences of the fallout, can be found on #6737.

@alexcrichton
Copy link
Member Author

I'll note that this PR is a draft at this time since I'm waiting for Wasmtime 13.0.0 to branch. Additionally anyone curious for yet more context on these changes should browse the Zulip stream for this too.

@alexcrichton alexcrichton marked this pull request as ready for review September 9, 2023 18:03
@alexcrichton alexcrichton requested a review from a team as a code owner September 9, 2023 18:03
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team September 9, 2023 18:03
@alexcrichton
Copy link
Member Author

Ok now that we're post-WasmCon this should be good to go!

@alexcrichton alexcrichton requested review from pchickey and fitzgen and removed request for fitzgen and pchickey September 11, 2023 16:35
@alexcrichton alexcrichton force-pushed the require-wasmtime-options-first branch from 562330d to 9446e57 Compare September 13, 2023 17:42
This commit implements a new behavior for the CLI of the `wasmtime`
executable which will require that options for Wasmtime itself come
before the wasm module being run. Currently they're allowed to come
afterwards, but instead all arguments and flags coming after a module
will be interpreted as arguments for the module itself.

This feature has a bit of a storied history at this point, and the
breadcrumbs are:

* Originally landed in bytecodealliance#6737
* Reverted for 12.0.0 in bytecodealliance#6830
* Reverted for 13.0.0 in bytecodealliance#6944

This PR is intended to be landed as a sibling of bytecodealliance#6925, another
independent overhaul of Wasmtime's own options on the CLI, for the
Wasmtime 14.0.0 release. More information about the motivation for this
change, as well as consequences of the fallout, can be found on bytecodealliance#6737.
@alexcrichton alexcrichton force-pushed the require-wasmtime-options-first branch from 9446e57 to fece613 Compare September 13, 2023 18:22
@alexcrichton alexcrichton added this pull request to the merge queue Sep 13, 2023
Merged via the queue into bytecodealliance:main with commit f7d0e87 Sep 13, 2023
18 checks passed
@alexcrichton alexcrichton deleted the require-wasmtime-options-first branch September 13, 2023 19:32
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Sep 15, 2023
)

This commit implements a new behavior for the CLI of the `wasmtime`
executable which will require that options for Wasmtime itself come
before the wasm module being run. Currently they're allowed to come
afterwards, but instead all arguments and flags coming after a module
will be interpreted as arguments for the module itself.

This feature has a bit of a storied history at this point, and the
breadcrumbs are:

* Originally landed in bytecodealliance#6737
* Reverted for 12.0.0 in bytecodealliance#6830
* Reverted for 13.0.0 in bytecodealliance#6944

This PR is intended to be landed as a sibling of bytecodealliance#6925, another
independent overhaul of Wasmtime's own options on the CLI, for the
Wasmtime 14.0.0 release. More information about the motivation for this
change, as well as consequences of the fallout, can be found on bytecodealliance#6737.
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Sep 22, 2023
)

This commit implements a new behavior for the CLI of the `wasmtime`
executable which will require that options for Wasmtime itself come
before the wasm module being run. Currently they're allowed to come
afterwards, but instead all arguments and flags coming after a module
will be interpreted as arguments for the module itself.

This feature has a bit of a storied history at this point, and the
breadcrumbs are:

* Originally landed in bytecodealliance#6737
* Reverted for 12.0.0 in bytecodealliance#6830
* Reverted for 13.0.0 in bytecodealliance#6944

This PR is intended to be landed as a sibling of bytecodealliance#6925, another
independent overhaul of Wasmtime's own options on the CLI, for the
Wasmtime 14.0.0 release. More information about the motivation for this
change, as well as consequences of the fallout, can be found on bytecodealliance#6737.
ydnar added a commit to ydnar/tinygo that referenced this pull request Oct 24, 2023
ydnar added a commit to ydnar/tinygo that referenced this pull request Nov 1, 2023
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