Skip to content

Commit 1f6896c

Browse files
Merge pull request #434 from stuggi/remove_go_work
Remove go.work before container build
2 parents da40023 + bccf8c8 commit 1f6896c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ WORKDIR $REMOTE_SOURCE_DIR/$REMOTE_SOURCE_SUBDIR
2121
USER root
2222
RUN mkdir -p ${DEST_ROOT}/usr/local/bin/
2323

24+
# Remove go.work - not needed for the build and may reference a Go version
25+
# from the CI environment that is higher than the build image provides
26+
RUN rm -f go.work go.work.sum
27+
2428
# cache deps before building and copying source so that we don't need to re-download as much
2529
# and so that source changes don't invalidate our downloaded layer
2630
RUN if [ ! -f $CACHITO_ENV_FILE ]; then go mod download ; fi

0 commit comments

Comments
 (0)