afero icon indicating copy to clipboard operation
afero copied to clipboard

Doesn't compile on WASI

Open applejag opened this issue 1 year ago • 2 comments

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

applejag avatar Aug 08 '23 15:08 applejag

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

HarikrishnanBalagopal avatar Oct 06 '23 04:10 HarikrishnanBalagopal

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

markphelps avatar Apr 15 '24 00:04 markphelps