-
Notifications
You must be signed in to change notification settings - Fork 70
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
docs: Add instructions for updating wasmtime
#322
base: main
Are you sure you want to change the base?
Changes from all commits
de195be
2783b5a
d4d68b1
471e14a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
# Updating `wasmtime` | ||
|
||
Projects depending upon `proxy-wasm-cpp-host` and `wasmtime` should | ||
ensure that the `wasmtime` dependency here is updated whenever updating | ||
`proxy-wasm-cpp-host`. | ||
|
||
## Install `rust` | ||
|
||
Ensure you have the latest version of rust. | ||
|
||
```console | ||
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
$ rustup update | ||
``` | ||
|
||
## Install `cargo-raze` | ||
|
||
```console | ||
$ cargo install cargo-raze --version 0.14.1. | ||
``` | ||
|
||
## Generate lockfile | ||
|
||
```console | ||
$ cd bazel/cargo/wasmtime | ||
$ cargo raze --generate-lockfile | ||
$ cd ../.. | ||
``` | ||
|
||
## Resolve duplicates in lockfile | ||
|
||
Currently due to an issue with raze (https://github.com/google/cargo-raze/issues/451) it | ||
is likely that you will need to clear up any duplicates created in the lockfile. | ||
|
||
Resolving this issue can be tricky as updates can generate a lot of change, but essentially | ||
you will need to check the overall diff for any problematic files and check to see where new | ||
dependencies have been added. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @PiotrSikora this feels pretty unsatisfactory but looking over the actual diffs (and checking through my/others attempts to resolve) im not clear what the process here should be when we recently updated this - i seem to rem right at the end a penny dropping and thinking "ok, got it" but im not sure what that was now or how to describe in a way that will work given the different possibilities regenerating the file has. is there any way we could resolve the upstream raze issue ? |
||
|
||
## Commit changes | ||
|
||
```console | ||
$ git add bazel/cargo/wasmtime | ||
$ git commit ... | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.