From d0d86f85d55d380c691a359a53a4863182105633 Mon Sep 17 00:00:00 2001 From: Caleb Allen Date: Sat, 25 Jul 2026 14:51:46 -0400 Subject: [PATCH] fix(ci): clone by hand instead of actions/checkout in the index workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actions/checkout is a JS action and needs node inside the job container, which the golang image does not carry — the step failed with "exec: node: executable file not found in $PATH". Clone with git and the package token instead, matching arch-package.yml. Co-Authored-By: Claude Opus 5 --- .gitea/workflows/index-artifact.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/index-artifact.yml b/.gitea/workflows/index-artifact.yml index a30aa97..302040b 100644 --- a/.gitea/workflows/index-artifact.yml +++ b/.gitea/workflows/index-artifact.yml @@ -56,12 +56,23 @@ jobs: PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }} SERVER_URL: ${{ github.server_url }} OWNER: ${{ github.repository_owner }} + REPO: ${{ github.repository }} + SHA: ${{ github.sha }} MODE: ${{ inputs.mode || 'auto' }} BUDGET: ${{ inputs.budget || '3h' }} ARTISTS: ${{ inputs.artists || '50000' }} steps: - - name: Check out - uses: actions/checkout@v4 + # Cloned by hand rather than with actions/checkout: that is a JS + # action and needs node inside the job container, which the golang + # image does not carry. Same approach as arch-package.yml. + - name: Clone repo at this commit + run: | + set -eu + git clone --quiet \ + "https://x-access-token:${PACKAGE_TOKEN}@${SERVER_URL#https://}/${REPO}.git" \ + /src + git -C /src checkout --quiet --detach "$SHA" + git -C /src log --oneline -1 - name: Verify the cache volume run: | @@ -79,6 +90,7 @@ jobs: df -h /cache - name: Build tools + working-directory: /src run: go build -o /usr/local/bin/ ./cmd/indexbuild ./cmd/indexexport - name: Maintain index