From 9e180ac6ebe266e3ee8e50895c64c380b577ca31 Mon Sep 17 00:00:00 2001 From: Darshan Lukhi Date: Wed, 19 Jun 2024 11:09:37 +0530 Subject: [PATCH] fix glibc version issues in the linux binary --- .github/workflows/deploy-stage.yaml | 2 +- CHANGELOG.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-stage.yaml b/.github/workflows/deploy-stage.yaml index ffbc502..8662c64 100644 --- a/.github/workflows/deploy-stage.yaml +++ b/.github/workflows/deploy-stage.yaml @@ -84,7 +84,7 @@ jobs: run: | mkdir -p release echo "Building binary file for target: ${{ matrix.goos }}${{ matrix.goarch }}" - env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ./release/ndc-elasticsearch-cli-${{ matrix.target }}${{ matrix.extension }} + env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} CGO_ENABLED=0 go build -o ./release/ndc-elasticsearch-cli-${{ matrix.target }}${{ matrix.extension }} - uses: actions/upload-artifact@v4 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fdbd28..7480437 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Use static linking to resolve `glibc` version issues + ## [0.1.1] - Fixed the configuration directory environment variable in the CLI.