Skip to content

upgrade wasmtime and wasmtime cli options#78

Closed
yfaming wants to merge 1 commit intobytecodealliance:mainfrom
yfaming:update_wasmtime_cli_options
Closed

upgrade wasmtime and wasmtime cli options#78
yfaming wants to merge 1 commit intobytecodealliance:mainfrom
yfaming:update_wasmtime_cli_options

Conversation

@yfaming
Copy link
Contributor

@yfaming yfaming commented Sep 26, 2023

bytecodealliance/wasmtime#6925 modified the command line options of wasmtime. The --wasm-features option for wasmtime run has been changed to --wasm.

bytecodealliance/wasmtime#6925 modified the
command line options of `wasmtime`. The `--wasm-features` option for
`wasmtime run` has been changed to `--wasm`.

```sh
wasmtime run --wasm-features component-model command.wasm 1 2 add
wasmtime run --wasm component-model command.wasm 1 2 add
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just downloaded the latest wasmtime 13.0.0 and I am not seeing the --wasm flag, only the preexisting --wasm-features flag

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, thank you for your review. You're correct, bytecodealliance/wasmtime#6925 was not included in the wasmtime v13.0.0 release, and I apologize for not verifying it in advance.

According to the wasmtime release process documentation, it will be included in the v14.0.0 release scheduled for October 20th. Do you think we should update the wasmtime version to the latest commit on the main branch, or should we wait until v14.0.0 is released before submitting the PR?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! We do call out in our docs to use latest dev, so this is flag applicable to that. Maybe we hold off the wasmtime cli changes till v14.0.0 is released, but update our docs that now you can use the wasmtime v13 release? We could still update the commit of the example-host as you have it to point to v13.0.0. I found that change was needed for the latest go toolchain: https://github.com/bytecodealliance/component-docs/pull/77/files#diff-d57d0b804e54f1a62d48be7c4af65e39543d8635b92e2837be5d1bc51a166969.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that #77 also includes a commit to update wasmtime to v13.0.0. I think I will go ahead and close this PR, and after wasmtime v14.0.0 is released, I will submit a new PR.

@itowlson itowlson mentioned this pull request Sep 27, 2023
@yfaming yfaming closed this Sep 28, 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