afero
afero copied to clipboard
Doesn't compile on WASI
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/[email protected]/const_win_unix.go:22:23: undefined: syscall.EBADFD
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/[email protected]/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
@spf13 any update on this? seems like #400 would fix?