Stream: git-wasmtime

Topic: wasmtime / PR #9948 fix broken example includes for #9788


view this post on Zulip Wasmtime GitHub notifications bot (Jan 08 2025 at 14:58):

chobermaier requested wasmtime-default-reviewers for a review on PR #9948.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 08 2025 at 14:58):

chobermaier requested alexcrichton for a review on PR #9948.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 08 2025 at 14:58):

chobermaier opened PR #9948 from chobermaier:main to bytecodealliance:main:

I think with the merge of #9788 yesterday the include statements of the new WASI examples were not quite spot on.

I'm not entirely sure if I got the right file paths to fix, but looking at the diff of #9788 I think they might be the right ones.

Running mdbook build --open to build the doc gave these errors:

2025-01-08 15:25:26 [INFO] (mdbook::book): Book building has started
2025-01-08 15:25:26 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../examples/wasi/main.rs}}", Could not read file for link {{#include ../examples/wasi/main.rs}} (/home/christian/repos/wasmtime/docs/./../examples/wasi/main.rs)
2025-01-08 15:25:26 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2025-01-08 15:25:26 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../examples/wasi-async/main.rs}}", Could not read file for link {{#include ../examples/wasi-async/main.rs}} (/home/christian/repos/wasmtime/docs/./../examples/wasi-async/main.rs)
2025-01-08 15:25:26 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2025-01-08 15:25:26 [ERROR] (mdbook::preprocess::links): Error updating "{{#include ../examples/wasi/main.c}}", Could not read file for link {{#include ../examples/wasi/main.c}} (/home/christian/repos/wasmtime/docs/./../examples/wasi/main.c)
2025-01-08 15:25:26 [WARN] (mdbook::preprocess::links): Caused By: No such file or directory (os error 2)
2025-01-08 15:25:26 [INFO] (mdbook::book): Running the html backend
2025-01-08 15:25:26 [INFO] (mdbook): Opening web browser

I changed the includes to those files:

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jan 08 2025 at 15:30):

alexcrichton submitted PR review:

Oops, thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Jan 08 2025 at 15:49):

alexcrichton merged PR #9948.


Last updated: Jan 24 2025 at 00:11 UTC