Skip to content

Commit

Permalink
Merge pull request #69 from codecrafters-io/fix-go-dockerfile
Browse files Browse the repository at this point in the history
remove go mod graph step
  • Loading branch information
rohitpaulk authored Sep 5, 2024
2 parents 29ed7d8 + c2322b0 commit a2b7dbf
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 @@ -13,4 +13,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 @@ -17,4 +17,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 @@ -17,4 +17,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 a2b7dbf

Please sign in to comment.