-
Notifications
You must be signed in to change notification settings - Fork 45
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
syscall.Umask not defined when compiling to wasi with tinygo #108
Comments
I checked their doc, especially the ref pages with commands, subcommands and flags (https://tinygo.org/docs/reference/usage/) and found nothing that match go build tags :/ The closest behaviour might be Edit : Confused by this though https://github.com/tinygo-org/tinygo/blob/v0.25.0/targets/wasi.json |
From that json, it looks like |
Ok, i can try this in local if you want to be sure that it fixes the problem. |
It seems like it worked even though The DO you want me to create the PR ? |
Hello,
I'm using [go-git/go-git] in my side-project. This project is supposed to be a plugin running in [extism] and therefore need to be cmpiled to wasi.
The problem is that when targeting wasi with tinygo I end up with the following error :
../../../go/pkg/mod/github.com/go-git/go-billy/[email protected]/osfs/os_wasip1.go:30:17: undefined: syscall.Umask
../../../go/pkg/mod/github.com/go-git/go-billy/[email protected]/osfs/os_wasip1.go:32:11: undefined: syscall.Umask
The way I understand it is that
syscall.Umask
does not exist in tinygo. I've been told (but could'nt find any matching sources) that tinygo expose anos.Umask
instead.I don't know if this would be the solution to fix compiling to wasi ?
The text was updated successfully, but these errors were encountered: