Skip to content

regen code instructions broken #7

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

Open
zetaab opened this issue Dec 9, 2023 · 2 comments
Open

regen code instructions broken #7

zetaab opened this issue Dec 9, 2023 · 2 comments

Comments

@zetaab
Copy link

zetaab commented Dec 9, 2023

https://github.com/dev-wasm/dev-wasm-go/tree/main/http#regenerating-the-code

currently if I try to checkout any newer code than commit cc86a80 the wit-bindgen will fail.

% wit-bindgen tiny-go wasi-http/wit -w proxy --out-dir proxy

Error: failed to parse package: wasi-http/wit

Caused by:
    expected `type`, `resource` or `func`, found ';'
         --> wasi-http/wit/handler.wit:4:50
          |
        4 |   use types.{incoming-request, response-outparam};
          |                                                  ^

% cd wasi-http && git rev-parse HEAD
7a0889a74741807b1f8b21fb50fdd73112250091

I have no idea is this issue in wit-bindgen tool or wasi-http/wit spec itself

@brendandburns
Copy link
Contributor

Yeah, there's a versioning issue between wit-bindgen and the wit syntax because they changed the syntax.

I'll update this repo for the newer versions of wasmtime and wit

@brendandburns
Copy link
Contributor

@zetaab please see #8 this is now working with wasmtime serve ... with wasmtime 15.0.1

I added a Makefile to help with things. cd webserver/wasi-http && make clean && make run

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

No branches or pull requests

2 participants