Skip to content

Commit

Permalink
Merge pull request #1334 from openmeterio/kafka-fixes
Browse files Browse the repository at this point in the history
build: fix kafka linker errors
  • Loading branch information
sagikazarmark authored Aug 14, 2024
2 parents 10588eb + 07dc49c commit 41c7f0e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/balance-worker/.air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tmp_dir = "tmp"
[build]
args_bin = ["--config", "./config.yaml", "--telemetry-address", ":10002"]
bin = "./tmp/openmeter-balance-worker"
cmd = "go build -o ./tmp/openmeter-balance-worker ./cmd/balance-worker"
cmd = "go build -tags dynamic -o ./tmp/openmeter-balance-worker ./cmd/balance-worker"
delay = 0
exclude_dir = ["assets", "ci", "deploy", "docs", "examples", "testdata", "quickstart", "tmp", "vendor", "api/client", "node_modules"]
exclude_file = []
Expand Down
2 changes: 1 addition & 1 deletion cmd/notification-service/.air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tmp_dir = "tmp"
[build]
args_bin = ["--config", "./config.yaml", "--telemetry-address", ":10002"]
bin = "./tmp/openmeter-notification-service"
cmd = "go build -o ./tmp/openmeter-notification-service ./cmd/notification-service"
cmd = "go build -tags dynamic -o ./tmp/openmeter-notification-service ./cmd/notification-service"
delay = 0
exclude_dir = ["assets", "ci", "deploy", "docs", "examples", "testdata", "quickstart", "tmp", "vendor", "api/client", "node_modules"]
exclude_file = []
Expand Down
2 changes: 1 addition & 1 deletion cmd/server/.air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tmp_dir = "tmp"
[build]
args_bin = ["--config", "./config.yaml"]
bin = "./tmp/openmeter-server"
cmd = "go build -o ./tmp/openmeter-server ./cmd/server"
cmd = "go build -tags dynamic -o ./tmp/openmeter-server ./cmd/server"
delay = 0
exclude_dir = ["assets", "ci", "deploy", "docs", "examples", "testdata", "quickstart", "tmp", "vendor", "api/client", "node_modules"]
exclude_file = []
Expand Down
2 changes: 1 addition & 1 deletion cmd/sink-worker/.air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tmp_dir = "tmp"
[build]
args_bin = ["--config", "./config.yaml", "--telemetry-address", ":10001"]
bin = "./tmp/openmeter-sink-worker"
cmd = "go build -o ./tmp/openmeter-sink-worker ./cmd/sink-worker"
cmd = "go build -tags dynamic -o ./tmp/openmeter-sink-worker ./cmd/sink-worker"
delay = 0
exclude_dir = ["assets", "ci", "deploy", "docs", "examples", "testdata", "quickstart", "tmp", "vendor", "api/client", "node_modules"]
exclude_file = []
Expand Down
11 changes: 10 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,16 @@
mage

# Kafka build dependencies
rdkafka # https://github.com/confluentinc/confluent-kafka-go#librdkafka
# https://github.com/confluentinc/confluent-kafka-go#librdkafka
(rdkafka.overrideAttrs (_: rec {
version = "2.5.0";
src = fetchFromGitHub {
owner = "confluentinc";
repo = "librdkafka";
rev = "v${version}";
sha256 = "sha256-NKrfnygzutdUkQbBuTQ/V46S9KlZH8sSOIBUA1eSfBQ=";
};
}))
cyrus_sasl
pkg-config
# confluent-platform
Expand Down

0 comments on commit 41c7f0e

Please sign in to comment.