Skip to content
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

Doesn't compile on WASI #399

Open
applejag opened this issue Aug 8, 2023 · 2 comments · May be fixed by #400
Open

Doesn't compile on WASI #399

applejag opened this issue Aug 8, 2023 · 2 comments · May be fixed by #400

Comments

@applejag
Copy link

applejag commented Aug 8, 2023

Go 1.21 just dropped :) And with that, WASIp1 support :D

However this package fails to compile:

$ GOOS=wasip1 GOARCH=wasm go build
# github.com/spf13/afero
../../../../go/pkg/mod/github.com/spf13/afero@v1.9.5/const_win_unix.go:22:23: undefined: syscall.EBADFD
@applejag applejag linked a pull request Aug 8, 2023 that will close this issue
@HarikrishnanBalagopal
Copy link

HarikrishnanBalagopal commented Oct 6, 2023

Seeing this error when compiling with viper and few other libraries

$ GOOS=wasip1 GOARCH=wasm go build -o ./bin/foo.wasm
# github.com/spf13/afero
/Users/user/go/pkg/mod/github.com/spf13/afero@v1.9.5/const_win_unix.go:22:23: undefined: syscall.EBADFD
make: *** [build] Error 1

$ go mod why github.com/spf13/afero
# github.com/spf13/afero
github.com/user/foo/cmd
github.com/spf13/viper
github.com/spf13/afero

@markphelps
Copy link

@spf13 any update on this? seems like #400 would fix?

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