fix: copy go.sum in Docker build stage for reproducible deps

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
SoftwareEngineer 2026-06-22 14:31:27 +02:00 committed by CTO
parent eed408bb19
commit 7ad41aa141
2 changed files with 15 additions and 2 deletions

View File

@ -6,7 +6,7 @@ FROM golang:1.25-alpine AS build
WORKDIR /src WORKDIR /src
# Cache module downloads before copying source (layer caching). # Cache module downloads before copying source (layer caching).
COPY go.mod ./ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY . ./ COPY . ./

15
go.mod
View File

@ -1,3 +1,16 @@
module github.com/elfoundation/hatch module github.com/elfoundation/hatch
go 1.25 go 1.25.0
require (
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/ncruces/go-strftime v1.0.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
golang.org/x/sys v0.44.0 // indirect
modernc.org/libc v1.73.4 // indirect
modernc.org/mathutil v1.7.1 // indirect
modernc.org/memory v1.11.0 // indirect
modernc.org/sqlite v1.53.0 // indirect
)