Skip to content

Commit 9cd0e72

Browse files
authored
Merge pull request #103 from codecrafters-io/fix-go-dockerfile
remove go mod graph step
2 parents 5560a90 + 75c5dc6 commit 9cd0e72

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dockerfiles/go-1.19.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ WORKDIR /app
66

77
COPY go.mod go.sum ./
88

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

dockerfiles/go-1.21.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ COPY go.mod go.sum ./
1010
# setting the GODEBUG environment to "installgoroot=all" restores the old behavior
1111
RUN GODEBUG="installgoroot=all" go install std
1212

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

dockerfiles/go-1.22.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ COPY go.mod go.sum ./
1010
# setting the GODEBUG environment to "installgoroot=all" restores the old behavior
1111
RUN GODEBUG="installgoroot=all" go install std
1212

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

0 commit comments

Comments
 (0)