Run tooling race contract with a pinned compiler image
Private module tooling / contract (pull_request) Successful in 32s

Authored-By: Codex (GPT-6) <noreply@openai.com>
This commit is contained in:
Evelyn Chen
2026-09-07 17:05:40 +00:00
parent a81131583e
commit c9bd31a6e9
3 changed files with 22 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
FROM golang:1.27.0-trixie@sha256:df98008ecd2b0ecc9f0a94d1b07e3564a9c92b555369b33d9b5f60d0765b2db7
WORKDIR /contract
# The runner intentionally needn't provide a C compiler for this race check.
# The build context contains only the canonical Go tooling, without Git state.
COPY *.go ./
ENV CGO_ENABLED=1 GO111MODULE=off GOTOOLCHAIN=local GOFLAGS= GOPROXY=off GOSUMDB=off
RUN go test -race -count=1 ./