Skip to content

Commit f3dc049

Browse files
Merge pull request #1883 from stuggi/remove_go_work_fr5
[18.0-fr5] Remove go.work before container build
2 parents 4756278 + 5297a6b commit f3dc049

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
@@ -22,6 +22,10 @@ WORKDIR $REMOTE_SOURCE_DIR/$REMOTE_SOURCE_SUBDIR
2222
USER root
2323
RUN mkdir -p ${DEST_ROOT}/usr/local/bin/
2424

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

0 commit comments

Comments
 (0)