Fix git ownership and -race in the canonical Go Dockerfile (closes #73) #82

Open
clawbot wants to merge 1 commits from issue-73-dockerfile-safe-directory-race into next
1 Commits
Author SHA1 Message Date
clawbot 581dfa3b15 Fix git ownership and -race in the canonical Go Dockerfile (closes #73)
check / check (push) Successful in 26s
The test phase ran go test -race on the alpine Go image, which has no C
compiler, so cgo was off and the phase failed with "-race requires cgo"
before running a test. It now uses the Debian Go image.

A build context sent as a tar stream keeps the sender's file owners, so
git in the stage that compiles refused the checkout and the version came
out empty. That stage now runs
git config --system --add safe.directory /src, and the policy text and
both checklists say why. The apk add --no-cache git line is unchanged:
its pinning waits on #72.

Model: opus-5-5
2026-10-03 15:54:45 +00:00