From abe47620a15629a3eccdabb23a57d55bd591cb55 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 20 Mar 2023 10:32:05 +0100 Subject: [PATCH] fix: compile the integration statically (#222) --- CHANGELOG.md | 3 +++ build/.goreleaser.yml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fed4394..d02c840d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased +### Bugfix +- Compile the integration statically + ## v3.4.0 - 2023-03-16 ### 🛡️ Security notices diff --git a/build/.goreleaser.yml b/build/.goreleaser.yml index f0d93d90..95f346e8 100644 --- a/build/.goreleaser.yml +++ b/build/.goreleaser.yml @@ -4,6 +4,8 @@ builds: binary: nri-kafka ldflags: - -s -w -X main.integrationVersion={{.Version}} -X main.gitCommit={{.Commit}} -X main.buildDate={{.Date}} + env: + - CGO_ENABLED=0 goos: - linux - darwin @@ -21,6 +23,8 @@ builds: binary: nri-kafka ldflags: - -s -w -X main.integrationVersion={{.Version}} -X main.gitCommit={{.Commit}} -X main.buildDate={{.Date}} + env: + - CGO_ENABLED=0 goos: - windows goarch: