Skip to content

Update tinygo version recommendations #168

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

Closed
lann opened this issue Oct 24, 2022 · 5 comments · Fixed by #174
Closed

Update tinygo version recommendations #168

lann opened this issue Oct 24, 2022 · 5 comments · Fixed by #174

Comments

@lann
Copy link
Contributor

lann commented Oct 24, 2022

We are still recommending 0.22, while the latest release is 0.26 which is broken. We should recommend 0.25.

@radu-matei

@rajatjindal
Copy link
Contributor

the user reported 0.25 does not work either (in discord). i had tested it using v0.22.0 as suggested in docs, but i think i had heard success story with 0.24.0 as well

@lann
Copy link
Contributor Author

lann commented Oct 24, 2022

0.26 works for me (Manjaro Linux)

@etehtsea
Copy link

Original issue in the spin repo: spinframework/spin#820

@etehtsea
Copy link

0.26 works for me (Manjaro Linux)

Weird, I've checked on fresh Manjaro in VM, but it seems to fail for me:

sh-5.1$ ../../target/release/spin build --up      
Executing the build command for component tinygo-hello: tinygo build -wasm-abi=generic -target=wasi -gc=leaking -no-debug -o main.wasm main.go
Successfully ran the build command for the Spin components.
Serving http://127.0.0.1:3000
Available Routes:
  tinygo-hello: http://127.0.0.1:3000/hello
2022-10-25T13:19:51.397974Z ERROR spin_http: Error processing request: wasm trap: wasm `unreachable` instruction executed
wasm backtrace:
    0: 0x3ab4 - <unknown>!runtime.runtimePanic
    1:  0x857 - <unknown>!runtime.lookupPanic
    2: 0xda99 - <unknown>!realloc
    3: 0x2b518 - <unknown>!canonical_abi_realloc
$ curl -i localhost:3000/hello                                                                           
HTTP/1.1 500 Internal Server Error
content-length: 0
date: Tue, 25 Oct 2022 13:19:51 GMT
tinygo version 0.26.0 linux/amd64 (using go version go1.19.2 and LLVM version 14.0.0)

@lann
Copy link
Contributor Author

lann commented Oct 25, 2022

Ah sorry, in discord I was looking at a compile error which doesn't happen in 0.26. The runtime error does reproduce. Thanks!

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 a pull request may close this issue.

3 participants