Peter
Peter
RRailway
Created by Peter on 1/22/2024 in #✋|help
Running Go server with kafka
I am trying to deploy a go project with the confluent-kafka-go package. However, when I tried to deploy with the nixpacks defaults i got errors where kafka was undefined. Digging a bit deeper i found this is because https://nixpacks.com/docs/providers/go CGO is set to 0 and needs to be 1 because the kafka client is C. When i set CGO_ENABLED=1 in env variables I get the following issue: "cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH" Any help would be appreciated ❤️
7 replies