From bd5f41a76ba38ae5f51bbcfc89ec086984cc9e9a Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Sun, 12 May 2024 11:05:18 -0400 Subject: [PATCH] Fix missing go.sum entry errors in staging.Dockerfile --- staging.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging.Dockerfile b/staging.Dockerfile index e9fdd1e..95cdea5 100644 --- a/staging.Dockerfile +++ b/staging.Dockerfile @@ -26,8 +26,8 @@ WORKDIR /src RUN go env -w GOCACHE=/go-cache RUN go env -w GOMODCACHE=/gomod-cache RUN --mount=type=cache,target=/gomod-cache \ - --mount=type=bind,source=./,target=/src \ - go mod download + --mount=type=bind,source=./,target=/src,rw \ + /bin/bash -c 'go mod tidy; go get -t' FROM cache AS build ARG MAKEOPTS