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

chore!: update wasmtime and wit-bindgen dependencies #574

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

dicej
Copy link
Contributor

@dicej dicej commented Jun 15, 2022

wasmtime 0.35.3 is, as of this writing, the most recent version of wasmtime
that supports module linking. Later versions have removed module linking in
favor of the component model, but the component model work is still in progress,
so we can't upgrade to the very latest until that work is complete.

BREAKING CHANGE: This also updates wit-bindgen to a snapshot of the main
branch as of June 13th. Known breaking changes from that update include:

  • breaking ABI changes -- you'll need to rebuild modules using a matching
    wit-bindgen

  • "function" has been renamed to "func" in WIT files

  • pull- and push-buffer support has been removed

Due to the latter, I've removed crates/object-store from this repo
temporarily. We can add it back in once stream support has been implemented in
wit-bindgen.

Signed-off-by: Joel Dice joel.dice@fermyon.com

@dicej
Copy link
Contributor Author

dicej commented Jun 15, 2022

I'm leaving this as a draft until after Spin 0.3.0 is tagged since I don't want to complicate that release.

@dicej
Copy link
Contributor Author

dicej commented Jun 15, 2022

I'll investigate the Go SDK test failure.

`wasmtime` 0.35.3 is, as of this writing, the most recent version of `wasmtime`
that supports module linking.  Later versions have removed module linking in
favor of the component model, but the component model work is still in progress,
so we can't upgrade to the very latest until that work is complete.

BREAKING CHANGE: This also updates `wit-bindgen` to a snapshot of the main
branch as of June 13th.  Known breaking changes from that update include:

- breaking ABI changes -- you'll need to rebuild modules using a matching
  `wit-bindgen`

- "function" has been renamed to "func" in WIT files

- pull- and push-buffer support has been removed

Due to the latter, I've removed `crates/object-store` from this repo
temporarily.  We can add it back in once stream support has been implemented in
`wit-bindgen`.

Note that I've regenerated the Go SDK using the new `wit-bindgen`.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@dicej dicej force-pushed the wasmtime-wit-bindgen-update branch from 3d4c84a to 9bd4a48 Compare June 15, 2022 21:20
@dicej
Copy link
Contributor Author

dicej commented Jun 15, 2022

Test failure is fixed, thanks to help from @adamreese. The Go SDK needed to be regenerated using the new wit-bindgen.

Copy link
Contributor

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

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

LGTM

@lann lann mentioned this pull request Jun 23, 2022
@dicej dicej marked this pull request as ready for review July 5, 2022 14:08
@dicej dicej merged commit 5db1e23 into fermyon:main Jul 5, 2022
dicej added a commit to dicej/spin that referenced this pull request Jul 25, 2022
- The spin-cli build was broken due to API changes in the main branch of the
  hippo-cli repo.  I've switched to using a recent tag to ensure it doesn't
  break again unexpectedly.

- The http-cpp build has been broken since fermyon#574 was merged.  My bad for not
  noticing until now.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
dicej added a commit to dicej/spin that referenced this pull request Jul 25, 2022
- The spin-cli build was broken due to API changes in the main branch of the
  hippo-cli repo.  I've switched to using a recent tag to ensure it doesn't
  break again unexpectedly.

- The http-cpp build has been broken since fermyon#574 was merged.  My bad for not
  noticing until now.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
dicej added a commit to dicej/spin that referenced this pull request Jul 26, 2022
- The spin-cli build was broken when executed via `cargo install` since [`cargo
  install` ignores Cargo.lock](rust-lang/cargo#7169)
  and the main branch of the `hippo-cli` repo is currently incompatible with
  `spin deploy` due to API changes.  I've fixed this by copying the Cargo.lock
  revision into Cargo.toml.  Once fermyon#621 is merged we'll start using a proper tag
  instead.

- The http-cpp build has been broken since fermyon#574 was merged.  My bad for not
  noticing until now.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
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