CodeBench: korjaa Go-pipeline — tiedostoparseri + go mod tidy

- parseGeneratedFiles regex: lisätty .go ja .mod päätteet
- Markdown fence strippaus: lisätty go/gomod
- Dockerfile.go-test: go mod tidy ennen testejä (go.sum generoidaan)
- Testattu: 6/6 golden example ilman go.sum
This commit is contained in:
2026-04-14 19:27:19 +03:00
parent f3cd1347ab
commit 01364b7031
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM golang:1.23-alpine
RUN apk add --no-cache gcc musl-dev
WORKDIR /work
ENTRYPOINT ["sh", "-c", "cp -r /src/* . && go test -v -count=1 ./... 2>&1"]
ENTRYPOINT ["sh", "-c", "cp -r /src/* . && go mod tidy 2>&1 && go test -v -count=1 ./... 2>&1"]