From 03f228c62ece3f9bf965d61d276c685fa86f9466 Mon Sep 17 00:00:00 2001 From: jedarden Date: Thu, 2 Jul 2026 09:13:55 -0400 Subject: [PATCH] fix(ci): ensure c++ symlink exists for rdkafka build The librdkafka configure script looks for the 'c++' command, not just 'g++'. Installing g++ should provide the c++ symlink via alternatives, but this doesn't always work correctly in minimal containers. This adds an explicit fallback to create the symlink if update-alternatives fails. --- k8s/argo-workflows/miroir-release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/k8s/argo-workflows/miroir-release.yaml b/k8s/argo-workflows/miroir-release.yaml index c52bd95..92953d7 100644 --- a/k8s/argo-workflows/miroir-release.yaml +++ b/k8s/argo-workflows/miroir-release.yaml @@ -105,7 +105,9 @@ spec: export PATH="/usr/local/cargo/bin:$PATH" # Install git and build dependencies - apt-get update -qq && apt-get install -y -qq git pkg-config libssl-dev musl-tools >/dev/null 2>&1 + apt-get update -qq && apt-get install -y -qq g++ git pkg-config libssl-dev musl-tools >/dev/null 2>&1 + # Ensure c++ symlink exists (required by librdkafka configure) + update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 50 || ln -sf /usr/bin/g++ /usr/bin/c++ # Clone the repo at the tag to workspace for sharing with later steps git clone --depth 1 --branch "$TAG" https://github.com/jedarden/miroir.git /workspace/src