hashicorp / hashicorp/serf

compile to WebAssembly

Open
#625 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.1k
Forks
609
Avg merge
15h 1m
Merged PRs (30d)
3

Description

Hello guys!

I'm using
macOS Big Sur 11.2.1
go version go1.14.4 darwin/amd64

I'm trying to compile my test app (which uses Serf) to WebAssembly with this command
`GOOS=js GOARCH=wasm go build -o membership.wasm`

I always get these errors
`
# github.com/hashicorp/go-sockaddr
../../../go/pkg/mod/github.com/hashicorp/go-sockaddr@v1.0.2/ifaddrs.go:116:13: undefined: NewRouteInfo
../../../go/pkg/mod/github.com/hashicorp/go-sockaddr@v1.0.2/ifaddrs.go:276:13: undefined: NewRouteInfo
../../../go/pkg/mod/github.com/hashicorp/go-sockaddr@v1.0.2/route_info.go:14:10: undefined: routeInfo
# github.com/armon/go-metrics
../../../go/pkg/mod/github.com/armon/go-metrics@v0.3.6/const_unix.go:11:18: undefined: syscall.SIGUSR1
`

Could you tell me please if it is even possible to build wasm binary using Serf?

Thank you in advance!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.