Error trying to do a linux build on a Mac
trevordowdle opened this issue · 0 comments
trevordowdle commented
Expected behavior
go build command generates executable when targeting linux
Actual behavior
No executable is generated
I see the following output:
sh-3.2$ GOOS=linux GOARCH=amd64 go build
# github.com/apache/pulsar/pulsar-client-go/pulsar
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/message.go:88:9: undefined: deserializeMessageId
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/message.go:93:30: undefined: earliestMessageID
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/message.go:96:28: undefined: latestMessageID
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:29:9: undefined: newClient
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:37:9: undefined: newAuthenticationToken
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:42:9: undefined: newAuthenticationTokenSupplier
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:47:9: undefined: newAuthenticationTLS
vendor/github.com/apache/pulsar/pulsar-client-go/pulsar/client.go:52:9: undefined: newAuthenticationAthenz
Steps to reproduce
- import "github.com/apache/pulsar/pulsar-client-go/pulsar"
- Run
GOOS=linux GOARCH=amd64 go build
or
GOOS=linux go build
System configuration
not applicable, i'm using a v2 module but not sure that has any bearing