Fix CI: checkout fails on branch pushes #42

Merged
robertismo merged 1 commit from 41/fix-ci-checkout into master 2026-09-29 18:00:07 +00:00
Owner

Root cause of the red build on #41: the workflow cloned with --depth 1 (shallow clone of the default branch) and then checked out $GITHUB_SHA. For branch pushes the SHA is not in the default-branch clone, so checkout died with 'fatal: unable to read tree (262f8c1...)' exit 128. Fix: fetch the pushed SHA explicitly and check out FETCH_HEAD. Verified locally: go vet and go test pass on the branch. This must land before PR #41 can go green.

Root cause of the red build on #41: the workflow cloned with --depth 1 (shallow clone of the default branch) and then checked out $GITHUB_SHA. For branch pushes the SHA is not in the default-branch clone, so checkout died with 'fatal: unable to read tree (262f8c1...)' exit 128. Fix: fetch the pushed SHA explicitly and check out FETCH_HEAD. Verified locally: go vet and go test pass on the branch. This must land before PR #41 can go green.
Winnie self-assigned this 2026-09-29 17:57:13 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Winnie/bankwars!42
No description provided.