Skip to content

Commit

Permalink
Merge pull request #170 from jkyros/fix-dockerfile-verify
Browse files Browse the repository at this point in the history
PODAUTO-225: Remove go mod verify from Dockerfile
  • Loading branch information
openshift-merge-bot[bot] committed Aug 29, 2024
2 parents f21e5ea + 9c19df2 commit 32a54ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ COPY go.sum go.sum
# since we use vendoring we don't need to redownload our dependencies every time. Instead we can simply
# reuse our vendored directory and verify everything is good. If not we can abort here and ask for a revendor.
COPY vendor vendor/
RUN go mod verify

# TODO(jkyros): go mod verify talks to the internet to check hashes, and it breaks in our disconnected
# build environment without access to the go proxy. Maybe there is a mod cache or something we can make
# it use in the build environment, but until then, turn it off.
# RUN go mod verify

# Copy the go source
COPY cmd/main.go cmd/main.go
Expand Down

0 comments on commit 32a54ae

Please sign in to comment.