Closed elgohr closed 6 years ago
When I try to use Agouti in a WASM setup $ GOOS=js GOARCH=wasm go test, it errors with
$ GOOS=js GOARCH=wasm go test
github.com/onsi/ginkgo/internal/specrunner ../../../../../pkg/mod/github.com/onsi/ginkgo@v1.6.0/internal/specrunner/spec_runner.go:220:33: undefined: syscall.SIGTERM ../../../../../pkg/mod/github.com/onsi/ginkgo@v1.6.0/internal/specrunner/spec_runner.go:245:33: undefined: syscall.SIGTERM github.com/sclevine/agouti/api/internal/service ../../../../../pkg/mod/github.com/sclevine/agouti@v3.0.0+incompatible/api/internal/service/service.go:81:34: undefined: syscall.SIGTERM
When I don't set GOOS and GOARCH the application code doesn't compile.
GOOS
GOARCH
This is a little annoying as it often breaks my flow.
Workaround: Move agouti tests in a separate package and run the tests without GOOS and GOARCH
I know that this is not an agouti-only issue, but agouti is next to the browser.
Fixed in https://github.com/golang/go/issues/28719
When I try to use Agouti in a WASM setup
$ GOOS=js GOARCH=wasm go test
, it errors withWhen I don't set
GOOS
andGOARCH
the application code doesn't compile.This is a little annoying as it often breaks my flow.
Workaround: Move agouti tests in a separate package and run the tests without
GOOS
andGOARCH
I know that this is not an agouti-only issue, but agouti is next to the browser.