reviewdog / reviewdog

🐶 Automated code review tool integrated with any code analysis tools regardless of programming language
https://medium.com/@haya14busa/reviewdog-a-code-review-dog-who-keeps-your-codebase-healthy-d957c471938b#.8xctbaw5u
MIT License
7.97k stars 422 forks source link

0.15.0 installation fails on Alpine using `go get` #1569

Closed OldhamMade closed 10 months ago

OldhamMade commented 1 year ago
$ docker run -ti alpine:3.18.3  # latest
/ # uname -a
Linux e534e0848fa5 5.15.49-linuxkit-pr #1 SMP PREEMPT Thu May 25 07:27:39 UTC 2023 aarch64 Linux

/ # apk update && apk add go
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz
v3.18.3-154-g9fca9473248 [https://dl-cdn.alpinelinux.org/alpine/v3.18/main]
v3.18.3-158-g8092355bc1a [https://dl-cdn.alpinelinux.org/alpine/v3.18/community]
OK: 19939 distinct packages available
(1/5) Installing libgcc (12.2.1_git20220924-r10)
(2/5) Installing libstdc++ (12.2.1_git20220924-r10)
(3/5) Installing zstd-libs (1.5.5-r4)
(4/5) Installing binutils-gold (2.40-r7)
(5/5) Installing go (1.20.8-r0)
Executing busybox-1.36.1-r2.trigger
OK: 182 MiB in 20 packages

/ # go install github.com/reviewdog/reviewdog/cmd/reviewdog@latest
go: downloading github.com/reviewdog/reviewdog v0.15.0
go: github.com/reviewdog/reviewdog/cmd/reviewdog@latest (in github.com/reviewdog/reviewdog@v0.15.0): go.mod:5: unknown directive: toolchain

/ # find / -type f -iname reviewdog
...no results...

/ # go install github.com/reviewdog/reviewdog/cmd/reviewdog@v0.14.2
go: downloading ...

/ # find / -type f -iname reviewdog
/root/go/bin/reviewdog

/ # /root/go/bin/reviewdog -version
master
shogo82148 commented 1 year ago

please use Go 1.21.1 or pre-built reviewdog binary.