-
Notifications
You must be signed in to change notification settings - Fork 918
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
methods not declared by package os #2910
Comments
thank you @dkegel-fastly ! |
Symlink not declared in version 0.26 also in the example from @etsai-stripe which is 0.23 and supposed to have the implementation. What are we missing?
Seems like it's been implemented for unix only while the wasm target is not covered by file_other.go Here is what happens if I copy the Symlink implementation from https://github.com/tinygo-org/tinygo/blob/release/src/os/file_unix.go
And with WASI:
Depends on WASI: golang/go#31105 |
I haven't checked whether wasi really supports symlink, but I guess it could at least be a stub... |
https://docs.rs/wasi/0.9.0+wasi-snapshot-preview1/wasi/fn.path_symlink.html I can't see any of the os packages related to file that is targeting a wasi build though. I have seen the implementation in file_unix.go and noticed that file_other.go is targeting wasm but not wasi. Where should I look for that in tinygo? |
i am able to build my web assembly by
GOOS=js GOARCH=wasm go build -tags wasm -o main.wasm cmd/stripe/main_wasm.go
but when i ran
tinygo build -o main.wasm -target wasm cmd/stripe/main_wasm.go
i got the following error
go version:
go version go1.17.2 darwin/amd64
tinygo version:
tinygo version 0.23.0 darwin/amd64 (using go version go1.17.2 and LLVM version 14.0.0)
please advice
thanks!
The text was updated successfully, but these errors were encountered: