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

Bump wasmtime to 3.0.0 #1

Merged
merged 1 commit into from
Nov 29, 2022
Merged

Bump wasmtime to 3.0.0 #1

merged 1 commit into from
Nov 29, 2022

Conversation

etehtsea
Copy link

Few fixes for compatibility with bytecodealliance/wasmtime#5149

Signed-off-by: Konstantin Shabanov mail@etehtsea.me

@etehtsea etehtsea mentioned this pull request Nov 27, 2022
1 task
Copy link

@dicej dicej left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

match result {
Ok(()) => anyhow::bail!("export didn't trap"),
Err(e) if e.to_string().contains(err) => Ok(()),
Err(e) if format!("{}", e.root_cause()).contains(err) => Ok(()),
Copy link

Choose a reason for hiding this comment

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

Just to be a bit more concise:

Suggested change
Err(e) if format!("{}", e.root_cause()).contains(err) => Ok(()),
Err(e) if e.root_cause().to_string().contains(err) => Ok(()),

Copy link
Author

Choose a reason for hiding this comment

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

Fixed, thanks!

Copy link
Collaborator

@lann lann left a comment

Choose a reason for hiding this comment

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

Thanks! Could you add a description of the error handling changes to the commit message? When maintaining a fork of an upstream project it is especially important to carefully track updates like that.

Fixes compatibility with redesigned error handling (Result<T,
wasmtime::Trap> -> anyhow::Result<T>).

Refs: bytecodealliance/wasmtime#5149

Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
@etehtsea
Copy link
Author

Thanks! Could you add a description of the error handling changes to the commit message? When maintaining a fork of an upstream project it is especially important to carefully track updates like that.

done! Thanks!

@lann lann merged commit b84eb01 into fermyon:main Nov 29, 2022
@lann
Copy link
Collaborator

lann commented Nov 29, 2022

Nice commit message, thanks!

@etehtsea etehtsea deleted the wasmtime-3 branch November 29, 2022 18:14
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.

3 participants