You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The go command in golang:alpine doesn't seem to be able to find the path to the Go toolchain downloaded when specifying GOTOOLCHAIN:
❯ docker run --rm -it golang:alpine
Unable to find image 'golang:alpine' locally
alpine: Pulling from library/golang
Digest: sha256:445f34008a77b0b98bf1821bf7ef5e37bb63cc42d22ee7c21cc17041070d134f
Status: Downloaded newer image for golang:alpine
/go # GOTOOLCHAIN=go1.20.7 go version
go: downloading go1.20.7 (linux/amd64)
go: exec go1.20.7: no such file or directory
/go #
The same command works just fine in golang:latest:
❯ docker run --rm -it golang
Unable to find image 'golang:latest' locally
latest: Pulling from library/golang
de4cac68b616: Pull complete
d31b0195ec5f: Pull complete
9b1fd34c30b7: Pull complete
2f744fb50e06: Pull complete
661ee9827c7b: Pull complete
fa5c1764d694: Pull complete
Digest: sha256:b490ae1f0ece153648dd3c5d25be59a63f966b5f9e1311245c947de4506981aa
Status: Downloaded newer image for golang:latest
root@e76b63273844:/go# GOTOOLCHAIN=go1.20.7 go version
go: downloading go1.20.7 (linux/amd64)
go version go1.20.7 linux/amd64
root@e76b63273844:/go#
Is there something different about the PATH variable in golang:alpine that is causing issues here maybe?
The text was updated successfully, but these errors were encountered:
pre-1.21 golang:alpine was compiled from source because of cgo, but now 1.21 compiles without cgo, so the image uses the prebuilt official golang release.
Using pre-1.21 toolchains on 1.21+ golang:alpine won't work because those toolchains depend on cgo
The
go
command ingolang:alpine
doesn't seem to be able to find the path to the Go toolchain downloaded when specifyingGOTOOLCHAIN
:The same command works just fine in
golang:latest
:Is there something different about the PATH variable in golang:alpine that is causing issues here maybe?
The text was updated successfully, but these errors were encountered: