pulsar-client-go: Go build fails to compile

Problem

I’m tying to build the code, which just import “github.com/apache/pulsar-client-go/pulsar”, and output is below.

go: finding module for package github.com/apache/pulsar-client-go/pulsar
go: downloading github.com/apache/pulsar-client-go v0.3.0
go: found github.com/apache/pulsar-client-go/pulsar in github.com/apache/pulsar-client-go v0.3.0
go: downloading github.com/prometheus/client_golang v1.7.1
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/yahoo/athenz v1.8.55
go: downloading github.com/apache/pulsar-client-go/oauth2 v0.0.0-20200715083626-b9f8c5cedefb
go: downloading github.com/sirupsen/logrus v1.4.2
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading github.com/klauspost/compress v1.10.8
go: downloading github.com/spaolacci/murmur3 v1.1.0
go: downloading github.com/pierrec/lz4 v2.0.5+incompatible
go: downloading github.com/linkedin/goavro/v2 v2.9.8
go: downloading github.com/datadog/zstd v1.4.6-0.20200617134701-89f69fb7df32
go: downloading golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
go: downloading golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1
go: downloading github.com/golang/snappy v0.0.1
go: downloading github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: downloading github.com/99designs/keyring v1.1.5
go: downloading golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7
go: downloading github.com/dvsekhvalnov/jose2go v0.0.0-20180829124132-7f401d37b68a
go: downloading github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d
go: downloading github.com/mtibben/percent v0.2.1
go: downloading golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/ardielle/ardielle-go v1.5.2
go: downloading github.com/golang/protobuf v1.4.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.10.0
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/procfs v0.1.3
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading google.golang.org/protobuf v1.23.0
# github.com/keybase/go-keychain
../../../../pkg/mod/github.com/keybase/go-keychain@v0.0.0-20190712205309-48d3d31d256d/macos_1.10.go:89:13: could not determine kind of name for C.SecTrustedApplicationCreateFromPath

It may be caused by referring github.com/keybase/go-keychain@v0.0.0-20190712205309-48d3d31d256d/macos_1.10.go because that is not latest one.

Environment

os: macOS Mojave 10.14.6 go: go1.15.3 darwin/amd64 pulsar-client-go: 0.3.0

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

I’m not sure the exact reason, but it works after rebooting mac! Many thanks @bnkamalesh @Auxxxxlx @wolfstudy @merlimat !!!

Thanks @merlimat. I tried it, but the result was same.

# github.com/99designs/keyring
../../../../pkg/mod/github.com/99designs/keyring@v1.1.6/keychain.go:136:8: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
../../../../pkg/mod/github.com/99designs/keyring@v1.1.6/keychain.go:181:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
../../../../pkg/mod/github.com/99designs/keyring@v1.1.6/keychain.go:181:21: undefined: keychain.Access
../../../../pkg/mod/github.com/99designs/keyring@v1.1.6/keychain.go:187:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
../../../../pkg/mod/github.com/99designs/keyring@v1.1.6/keychain.go:187:21: undefined: keychain.Access

https://github.com/apache/pulsar-client-go/pull/404 looks it is for MacOS Catalina, but my environment is Mojave.