The gofumpt has released its new version v0.6.0 and this version depends on the golang 1.20.0. I'll open a pr to update the golang version in Dockerfile.
The relevant log is pasted as follows:
Build container for action use: '/home/runner/work/_actions/iamnotaturtle/auto-gofmt/v2.1.0/Dockerfile'.
/usr/bin/docker build -t b0c0a1:0f8eceb[2](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:2)19a54a698778802888fb89f9 -f "/home/runner/work/_actions/iamnotaturtle/auto-gofmt/v2.1.0/Dockerfile" "/home/runner/work/_actions/iamnotaturtle/auto-gofmt/v2.1.0"
#0 building with "default" instance using docker driver
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 275B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/golang:1.19.5-alpine
#3 ...
#4 [auth] library/golang:pull token for registry-1.docker.io
#4 DONE 0.0s
#3 [internal] load metadata for docker.io/library/golang:1.19.5-alpine
#3 DONE 0.6s
#5 [internal] load build context
#5 transferring context: 2.67kB done
#5 DONE 0.0s
#6 [1/4] FROM docker.io/library/golang:1.19.5-alpine@sha256:a00a03c72ecc1a01e4ca7b7cfb62459063912ff45ccb13011f9fb061e25916eb
#6 resolve docker.io/library/golang:1.19.5-alpine@sha256:a00a03c72ecc1a01e4ca7b7cfb62459063912ff45ccb13011f9fb061e25916eb done
#6 extracting sha256:63b65145d645c1250c391b2d16ebe53b3747c295ca8ba2fcb6b0cf064a4dc21c
#6 sha256:a00a03c72ecc1a01e4ca7b7cfb62459063912ff45ccb13011f9fb061e25916eb 1.65kB / 1.65kB done
#6 sha256:c82f81ed35e1b92a9ed49d2ee39b18dcee9f38864053c3d0d7c0ff491c08b4dc 1.16kB / 1.16kB done
#6 sha256:f8e86a052e6c54e2970ebf965b570be1301a6ebc08e5fd9c7b171a3c57a74bff 5.11kB / 5.11kB done
#6 sha256:63b65145d645c1250c391b2d16ebe53b3747c295ca8ba2fcb6b0cf064a4dc21c 3.37MB / 3.37MB 0.1s done
#6 sha256:a2d21d5440ebff5aaaaeb115a003f7a4a3897f1866a87de95bc4a21436fc563c 284.82kB / 284.82kB 0.0s done
#6 sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef 1.05MB / 122.33MB 0.1s
#6 sha256:f44e73cf898e4378b99153fdeb27594e3b34ed15c7b5a3ce2782a4f1323f4591 0B / 156B 0.1s
#6 extracting sha256:63b65145d645c1250c391b2d16ebe53b3747c295ca8ba2fcb6b0cf064a4dc21c 0.1s done
#6 sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef 18.87MB / 122.33MB 0.2s
#6 sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef 33.55MB / 122.33MB 0.3s
#6 sha256:f44e73cf898e4378b99153fdeb27594e3b34ed15c7b5a3ce2782a4f1323f4591 156B / 156B 0.3s done
#6 extracting sha256:a2d21d5440ebff5aaaaeb115a003f7a4a3897f1866a87de95bc4a21436fc563c 0.0s done
#6 sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef 66.06MB / 122.33MB 0.5s
#6 sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef 106.95MB / 122.33MB 0.7s
#6 sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef 113.25MB / 122.33MB 0.8s
#6 sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef 122.33MB / 122.33MB 0.9s
#6 extracting sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef
#6 sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef 122.33MB / 122.33MB 0.9s done
#6 extracting sha256:46eea44c656f6a945ac54680f3b7545ce75ea2a89fdb1ffdfd16f20ec3794fef 4.5s done
#6 extracting sha256:f44e73cf898e4378b99153fdeb27594e3b34ed15c7b5a3ce2782a4f1323f4591
#6 extracting sha256:f44e73cf898e4378b99153fdeb27594e3b34ed15c7b5a3ce2782a4f1323f4591 done
#6 DONE 6.3s
#7 [2/4] RUN apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest
#7 0.189 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#7 0.338 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#7 0.599 (1/11) Installing ncurses-terminfo-base (6.3_p20221119-r1)
#7 0.609 (2/11) Installing ncurses-libs (6.3_p20221119-r1)
#7 0.625 (3/11) Installing readline (8.2.0-r0)
#7 0.636 (4/11) Installing bash (5.2.15-r0)
#7 0.661 Executing bash-5.2.15-r0.post-install
#7 0.663 (5/11) Installing brotli-libs (1.0.9-r9)
#7 0.682 (6/11) Installing nghttp2-libs (1.51.0-r2)
#7 0.690 (7/11) Installing libcurl (8.5.0-r0)
#7 0.706 (8/11) Installing libexpat (2.5.0-r0)
#7 0.714 (9/11) Installing pcre2 (10.42-r0)
#7 0.729 (10/11) Installing git (2.38.5-r0)
#7 0.808 (11/11) Installing git-lfs (3.2.0-r6)
#7 0.882 Executing git-lfs-3.2.0-r6.post-install
#7 0.897 Git LFS initialized.
#7 0.898 Executing busybox-1.35.0-r29.trigger
#7 0.904 OK: 30 MiB in 27 packages
#7 1.155 go: downloading mvdan.cc/gofumpt v0.6.0
#7 1.209 go: downloading golang.org/x/sync v0.6.0
#7 1.227 go: downloading github.com/google/go-cmp v0.6.0
#7 1.233 go: downloading golang.org/x/mod v0.14.0
#7 1.253 go: downloading golang.org/x/tools v0.17.0
#7 2.219 # mvdan.cc/gofumpt/internal/govendor/go/printer
#7 2.219 pkg/mod/mvdan.cc/gofumpt@v0.6.0/internal/govendor/go/printer/comment.go:40:28: undefined: strings.CutPrefix
#7 2.219 note: module requires Go 1.20
#7 ERROR: process "/bin/sh -c apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest" did not complete successfully: exit code: 2
------
> [2/4] RUN apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest:
0.898 Executing busybox-1.35.0-r29.trigger
0.904 OK: 30 MiB in 27 packages
1.155 go: downloading mvdan.cc/gofumpt v0.6.0
1.209 go: downloading golang.org/x/sync v0.6.0
1.227 go: downloading github.com/google/go-cmp v0.6.0
1.233 go: downloading golang.org/x/mod v0.14.0
1.253 go: downloading golang.org/x/tools v0.17.0
2.219 # mvdan.cc/gofumpt/internal/govendor/go/printer
2.219 pkg/mod/mvdan.cc/gofumpt@v0.6.0/internal/govendor/go/printer/comment.go:40:28: undefined: strings.CutPrefix
2.219 note: module requires Go 1.20
------
Dockerfile:4
--------------------
3 | # TODO: do we need all of these?
4 | >>> RUN apk --no-cache add bash git git-lfs &&\
5 | >>> go install mvdan.cc/gofumpt@latest
6 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest" did not complete successfully: exit code: 2
Warning: Docker build failed with exit code 1, back off 1.488 seconds before retry.
/usr/bin/docker build -t b0c0a1:0f8eceb219a54a698778802888fb89f9 -f "/home/runner/work/_actions/iamnotaturtle/auto-gofmt/v2.1.0/Dockerfile" "/home/runner/work/_actions/iamnotaturtle/auto-gofmt/v2.1.0"
#0 building with "default" instance using docker driver
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 275B done
#2 DONE 0.0s
#[3](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:3) [internal] load metadata for docker.io/library/golang:1.19.5-alpine
#3 DONE 0.0s
#4 [1/4] FROM docker.io/library/golang:1.19.5-alpine@sha256:a00a03c72ecc1a01e4ca7b7cfb62459063912ff45ccb13011f9fb061e25916eb
#4 CACHED
#5 [internal] load build context
#5 transferring context: 35B done
#5 DONE 0.0s
#6 [2/4] RUN apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest
#6 0.172 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
#6 0.330 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#6 0.593 (1/11) Installing ncurses-terminfo-base (6.3_p20221119-r1)
#6 0.604 (2/11) Installing ncurses-libs (6.3_p20221119-r1)
#6 0.621 (3/11) Installing readline (8.2.0-r0)
#6 0.636 (4/11) Installing bash (5.2.15-r0)
#6 0.672 Executing bash-5.2.15-r0.post-install
#6 0.674 (5/11) Installing brotli-libs (1.0.9-r9)
#6 0.697 (6/11) Installing nghttp2-libs (1.51.0-r2)
#6 0.765 (7/11) Installing libcurl (8.5.0-r0)
#6 0.780 (8/11) Installing libexpat (2.5.0-r0)
#6 0.788 (9/11) Installing pcre2 (10.42-r0)
#6 0.803 (10/11) Installing git (2.38.5-r0)
#6 0.883 (11/11) Installing git-lfs (3.2.0-r6)
#6 0.969 Executing git-lfs-3.2.0-r6.post-install
#6 0.984 Git LFS initialized.
#6 0.986 Executing busybox-1.35.0-r29.trigger
#6 0.992 OK: 30 MiB in 27 packages
#6 1.172 go: downloading mvdan.cc/gofumpt v0.6.0
#6 1.224 go: downloading golang.org/x/sync v0.6.0
#6 1.245 go: downloading github.com/google/go-cmp v0.6.0
#6 1.251 go: downloading golang.org/x/mod v0.14.0
#6 1.262 go: downloading golang.org/x/tools v0.17.0
#6 2.191 # mvdan.cc/gofumpt/internal/govendor/go/printer
#6 2.191 pkg/mod/mvdan.cc/gofumpt@v0.6.0/internal/govendor/go/printer/comment.go:40:28: undefined: strings.CutPrefix
#6 2.191 note: module requires Go 1.20
#6 ERROR: process "/bin/sh -c apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest" did not complete successfully: exit code: 2
------
> [2/4] RUN apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest:
0.986 Executing busybox-1.35.0-r29.trigger
0.992 OK: 30 MiB in 27 packages
1.172 go: downloading mvdan.cc/gofumpt v0.6.0
1.224 go: downloading golang.org/x/sync v0.6.0
1.245 go: downloading github.com/google/go-cmp v0.6.0
1.251 go: downloading golang.org/x/mod v0.14.0
1.262 go: downloading golang.org/x/tools v0.17.0
2.191 # mvdan.cc/gofumpt/internal/govendor/go/printer
2.191 pkg/mod/mvdan.cc/gofumpt@v0.6.0/internal/govendor/go/printer/comment.go:40:28: undefined: strings.CutPrefix
2.191 note: module requires Go 1.20
------
Dockerfile:4
--------------------
3 | # TODO: do we need all of these?
4 | >>> RUN apk --no-cache add bash git git-lfs &&\
5 | >>> go install mvdan.cc/gofumpt@latest
6 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest" did not complete successfully: exit code: 2
Warning: Docker build failed with exit code 1, back off 8.123 seconds before retry.
/usr/bin/docker build -t b0c0a1:0f8eceb219a54a698778802888fb89f9 -f "/home/runner/work/_actions/iamnotaturtle/auto-gofmt/v2.1.0/Dockerfile" "/home/runner/work/_actions/iamnotaturtle/auto-gofmt/v2.1.0"
#0 building with "default" instance using docker driver
#1 [internal] load .dockerignore
#1 transferring context: 2B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 275B done
#2 DONE 0.0s
#3 [internal] load metadata for docker.io/library/golang:1.19.5-alpine
#3 DONE 0.1s
#[4](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:4) [1/4] FROM docker.io/library/golang:1.19.[5](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:5)-alpine@sha25[6](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:6):a00a03c[7](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:7)2ecc1a01e4ca7b7cfb62459063912ff45ccb13011f9fb061e25916eb
#4 CACHED
#5 [internal] load build context
#5 transferring context: 35B done
#5 DONE 0.0s
#6 [2/4] RUN apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest
#6 0.161 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x[8](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:8)6_64/APKINDEX.tar.gz
#6 0.2[9](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:9)8 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
#6 0.537 (1/11) Installing ncurses-terminfo-base (6.3_p20221119-r1)
#6 0.547 (2/11) Installing ncurses-libs (6.3_p20221119-r1)
#6 0.561 (3/11) Installing readline (8.2.0-r0)
#6 0.571 (4/11) Installing bash (5.2.15-r0)
#6 0.596 Executing bash-5.2.15-r0.post-install
#6 0.599 (5/11) Installing brotli-libs (1.0.9-r9)
#6 0.615 (6/11) Installing nghttp2-libs (1.51.0-r2)
#6 0.623 (7/11) Installing libcurl (8.5.0-r0)
#6 0.636 (8/11) Installing libexpat (2.5.0-r0)
#6 0.645 (9/11) Installing pcre2 ([10](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:10).42-r0)
#6 0.658 (10/[11](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:11)) Installing git (2.38.5-r0)
#6 0.737 (11/11) Installing git-lfs (3.2.0-r6)
#6 0.810 Executing git-lfs-3.2.0-r6.post-install
#6 0.825 Git LFS initialized.
#6 0.827 Executing busybox-1.35.0-r29.trigger
#6 0.832 OK: 30 MiB in 27 packages
#6 1.007 go: downloading mvdan.cc/gofumpt v0.6.0
#6 1.060 go: downloading golang.org/x/sync v0.6.0
#6 1.078 go: downloading github.com/google/go-cmp v0.6.0
#6 1.084 go: downloading golang.org/x/mod v0.[14](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:14).0
#6 1.093 go: downloading golang.org/x/tools v0.[17](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:17).0
#6 1.999 # mvdan.cc/gofumpt/internal/govendor/go/printer
#6 1.999 pkg/mod/mvdan.cc/gofumpt@v0.6.0/internal/govendor/go/printer/comment.go:40:28: undefined: strings.CutPrefix
#6 1.999 note: module requires Go 1.[20](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:20)
#6 ERROR: process "/bin/sh -c apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest" did not complete successfully: exit code: 2
------
> [2/4] RUN apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest:
0.8[27](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:27) Executing busybox-1.35.0-r29.trigger
0.832 OK: 30 MiB in 27 packages
1.007 go: downloading mvdan.cc/gofumpt v0.6.0
1.060 go: downloading golang.org/x/sync v0.6.0
1.078 go: downloading github.com/google/go-cmp v0.6.0
1.084 go: downloading golang.org/x/mod v0.14.0
1.093 go: downloading golang.org/x/tools v0.17.0
1.999 # mvdan.cc/gofumpt/internal/govendor/go/printer
1.999 pkg/mod/mvdan.cc/gofumpt@v0.6.0/internal/govendor/go/printer/comment.go:40:[28](https://github.com/xline-kv/xline-operator/actions/runs/7689671544/job/20952442441?pr=50#step:2:28): undefined: strings.CutPrefix
1.999 note: module requires Go 1.20
------
Dockerfile:4
--------------------
3 | # TODO: do we need all of these?
4 | >>> RUN apk --no-cache add bash git git-lfs &&\
5 | >>> go install mvdan.cc/gofumpt@latest
6 |
--------------------
ERROR: failed to solve: process "/bin/sh -c apk --no-cache add bash git git-lfs && go install mvdan.cc/gofumpt@latest" did not complete successfully: exit code: 2
The gofumpt has released its new version v0.6.0 and this version depends on the golang 1.20.0. I'll open a pr to update the golang version in Dockerfile.
The relevant log is pasted as follows: