ci: bypass runner's git.redclaw.dev -> /slab/projects mirror for cargo
ci / gates (push) Successful in 49s
ci / frontend (push) Successful in 41s
ci / rust (push) Failing after 2m21s
ci / e2e (push) Has been skipped
ci / publish (push) Has been skipped

Real failure surfaced from Gitea action logs on gw-01: cargo can't fetch
the claw-brain dep because the runner's global gitconfig has an includeIf
that maps `https://git.redclaw.dev/*` to `/slab/projects/*` whenever git
runs from ~/.cargo/git/. That local mirror doesn't have the rev cm-brain
pins (0ee183acc1600aba01546bd648bf3cae6f42dcc2), so cargo bails with
"revspec not found" during `cargo clippy`.

clawverse is a public repo and the commit is reachable directly. Set
GIT_CONFIG_GLOBAL to a per-job empty file so the includeIf never applies,
and cargo goes straight to the remote. Local dev is untouched. Follow-up
task: keep the /slab/projects mirrors updated so this workaround becomes
belt-and-suspenders instead of load-bearing.
This commit is contained in:
Omar Sobh
2026-07-05 09:24:56 -07:00
parent 4465797f3c
commit 48c6adfa1b
+8
View File
@@ -27,9 +27,17 @@ jobs:
# architect natively, not inside a container), so we start a per-run postgres # architect natively, not inside a container), so we start a per-run postgres
# container and reach it via its bridge IP. GITHUB_RUN_ID scopes the name so # container and reach it via its bridge IP. GITHUB_RUN_ID scopes the name so
# concurrent jobs on the same runner don't collide. # concurrent jobs on the same runner don't collide.
#
# GIT_CONFIG_GLOBAL points at a per-job empty file so cargo's git fetches
# bypass the runner's includeIf mapping of git.redclaw.dev → /slab/projects
# (local mirror lags and misses recently-pinned commits like the clawverse
# rev cm-brain depends on). clawverse is public; no auth needed.
env: env:
SQLX_OFFLINE: "true" SQLX_OFFLINE: "true"
GIT_CONFIG_GLOBAL: /tmp/ci-empty-gitconfig-${{ github.run_id }}
steps: steps:
- name: Prepare empty gitconfig for cargo fetches
run: touch "$GIT_CONFIG_GLOBAL"
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Start postgres sidecar - name: Start postgres sidecar
run: | run: |