Skip to content

Commit

Permalink
update Go dockerfiles (remove mod build step)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed Sep 5, 2024
1 parent 3afec90 commit ba0865b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dockerfiles/go-1.19.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ WORKDIR /app

COPY go.mod go.sum ./

RUN ash -c "set -exo pipefail; go mod graph | awk '{if (\$1 !~ \"@\") {print \$2}}' | xargs -r go get"
RUN go mod download
2 changes: 1 addition & 1 deletion dockerfiles/go-1.21.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ COPY go.mod go.sum ./
# setting the GODEBUG environment to "installgoroot=all" restores the old behavior
RUN GODEBUG="installgoroot=all" go install std

RUN ash -c "set -exo pipefail; go mod graph | awk '{if (\$1 !~ \"@\") {print \$2}}' | xargs -r go get"
RUN go mod download
2 changes: 1 addition & 1 deletion dockerfiles/go-1.22.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ COPY go.mod go.sum ./
# setting the GODEBUG environment to "installgoroot=all" restores the old behavior
RUN GODEBUG="installgoroot=all" go install std

RUN ash -c "set -exo pipefail; go mod graph | awk '{if (\$1 !~ \"@\") {print \$2}}' | xargs -r go get"
RUN go mod download

0 comments on commit ba0865b

Please sign in to comment.