Closed
Description
It seems to be setting GOROOT
to /usr/bin/go
.
But /usr/bin/go
is a binary.
Actual GOROOT
should be /usr/lib/golang
in this case.
I found this while trying to build packages that depend on go using the mariner toolkit.
For whatever reason in the chroot during package build /etc/profile is not being sourced so GOROOT (and other GO* vars) are left unset leaving them to the compiled-in versions.
This yields a somewhat cryptic error (or at least very unexpected) like: go: cannot find GOROOT directory: /usr/bin/go