confluent-kafka-go: Clang error when building with v1.4.0
Description
I upgraded to the latest version of the go client (v1.4.0) and ran brew upgrade librdkafka. But the client is looking for librdkafka in the package directory and it is not present.
How to reproduce
In an existing project that uses confluent-kafka-go, run go get -u gopkg.in/confluentinc/confluent-kafka-go.v1/kafka and go build ./...
You should receive something similar to:
clang: error: no such file or directory: '$GOHOME/src/github.com/your-user/your-service/vendor/gopkg.in/confluentinc/confluent-kafka-go.v1/kafka/librdkafka
/librdkafka_darwin.a'
Checklist
Please provide the following information:
- confluent-kafka-go and librdkafka version (
LibraryVersion()): v1.4.0 (both) - [ n/a ] Apache Kafka broker version:
- [ n/a ] Client configuration:
- Operating system: Mac OS X 10.15.4
- [ n/a ] Provide client logs
- [ n/a ] Provide broker log excerpts
- Critical issue
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 36 (18 by maintainers)
Fixed in v1.4.2
Whoop!
Thank you so much for the quick testing!
I’ll prepare a new release, v1.4.1, to fix this proper.
The problem is fixed with v1.4.2. But we should import
_ "gopkg.in/confluentinc/confluent-kafka-go.v1/kafka/librdkafka"Thanks!
librdkafka still needs to be bundled with the Go client. To keep the Go repo size down we’ll only do this once librdkafka v1.4.2 is released which is hopefully later this week.
Any updates on this @edenhill ? I tried
go get gopkg.in/confluentinc/confluent-kafka-go.v1@v1.0.7-RC1but getinvalid version: unknown revision v1.0.7-RC1.Yes. I used the producer example to verify it on macOS.
@edenhill this isn’t working using dep
Yes, it was removed, we’re aiming to release a proper v1.4.2 this week, will have a release-candidate ready soon for you to try out.
Thanks for your work! 🎉
Seems to be hitting this issue of go mod vendor: https://github.com/golang/go/issues/26366