You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file 'testhelpers.go' is adding test code to production builds. That file contains 'testing' package and adds some flags that appear in the usage of the final program. This bug is a regression of #51 but with a different set of flags.
How to reproduce
Given the following code, obtained from #51 and updated to the latest version of confluent-kafka-go:
$ ./foo --help
Usage of ./main:
-clients.docker
Decides whether a docker container be brought up automatically
-clients.semaphore
Tells if the job is running on Semaphore
Checklist
Please provide the following information:
confluent-kafka-go and librdkafka version (LibraryVersion()): v2.2.0 and librdkafka-static-bundle-v2.2.0.tgz
Apache Kafka broker version:
Client configuration: ConfigMap{...}
Operating system: linux (glibc and musl)
Provide client logs (with "debug": ".." as necessary)
Provide broker log excerpts
Critical issue
The text was updated successfully, but these errors were encountered:
testhelpers.go cannot be suffixed with _test.go because CGo is not allowed in test code. But the only usage of CGo in that file seems to be for the line 159:
Description
The file 'testhelpers.go' is adding test code to production builds. That file contains 'testing' package and adds some flags that appear in the usage of the final program. This bug is a regression of #51 but with a different set of flags.
How to reproduce
Given the following code, obtained from #51 and updated to the latest version of confluent-kafka-go:
we get the following help output:
Checklist
Please provide the following information:
LibraryVersion()
): v2.2.0 and librdkafka-static-bundle-v2.2.0.tgzConfigMap{...}
"debug": ".."
as necessary)The text was updated successfully, but these errors were encountered: