From 5af2b1d660d30813bd97f78a8b35cfe1fd1f5838 Mon Sep 17 00:00:00 2001 From: Jon Chery Date: Wed, 12 Aug 2026 22:52:53 +0000 Subject: [PATCH] =?UTF-8?q?fix(P1):=20fix=20bash=20substring=20in=20ci-rel?= =?UTF-8?q?ease.sh=20=E2=80=94=20dash=20doesn't=20support=20${var:0:12}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Gitea Actions runner uses dash as /bin/sh. ${GIT_COMMIT:0:12} is bash-only substring substitution. dash gives 'Bad substitution' (exit 1). Fix: use $(echo "$GIT_COMMIT" | cut -c1-12) instead. The coreci pipeline (build+test) SUCCEEDED in the last run — the only failure was this shell compatibility issue in the release step. ---ci--- project: orca phase: 1 milestone: v0.16 status: execute ---/ci--- --- scripts/ci-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci-release.sh b/scripts/ci-release.sh index 9c99ca2..8f3efe6 100755 --- a/scripts/ci-release.sh +++ b/scripts/ci-release.sh @@ -26,7 +26,7 @@ GIT_COMMIT="${GIT_COMMIT:-unknown}" BUILD_TIME="$(date -u +%Y-%m-%dT%H:%M:%SZ)" TARBALL="orca-${VERSION}-linux-amd64.tar.gz" -info "building release ${VERSION} (commit ${GIT_COMMIT:0:12})..." +info "building release ${VERSION} (commit $(echo "${GIT_COMMIT}" | cut -c1-12))..." # Build the release binary with version injection. LDFLAGS="-s -w \