Skip to content

Commit fb7334e

Browse files
committed
fix(dockerfile): use latest supported packages for golang v1.18
1 parent 085e31d commit fb7334e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ FROM golang:1.18-alpine
33
ENV GIT_TERMINAL_PROMPT=0
44
RUN apk add --no-cache git
55

6-
RUN go install github.com/mvdan/gofumpt@latest
6+
# Install gofumpt (latest v0.4.0 to support go1.18)
7+
RUN go install mvdan.cc/gofumpt@v0.4.0
78
RUN go install github.com/01-edu/rc@latest
89

910
WORKDIR /piscine-go
1011
RUN go mod init piscine-go
11-
RUN go get github.com/01-edu/z01@latest
12+
# Install z01 package (latest v0.2.0, same as go.mod)
13+
RUN go get github.com/01-edu/z01@v0.2.0
1214

1315
WORKDIR /go-tests
1416
COPY go.* ./

0 commit comments

Comments
 (0)