Skip to content

Commit

Permalink
Merge pull request #257 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 41a84d8 + 40e3c19 commit e7f4375
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 e7f4375

Please sign in to comment.