Skip to content

Commit d2dc797

Browse files
Merge pull request #872 from openshift-cherrypick-robot/cherry-pick-871-to-18.0-fr5
[18.0-fr5] Remove go.work before container build
2 parents 0179e66 + 20dffdd commit d2dc797

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

26+
# Remove go.work - not needed for the build and may reference a Go version
27+
# from the CI environment that is higher than the build image provides
28+
RUN rm -f go.work go.work.sum
29+
2630
RUN if [ ! -f $CACHITO_ENV_FILE ]; then go mod download ; fi
2731

2832
# Build manager

0 commit comments

Comments
 (0)