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
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
The text was updated successfully, but these errors were encountered:
In https://github.com/microsoft/CBL-Mariner/blob/ae993d0b3288b1bb291f5f468169fa36b681b4d4/SPECS/golang/golang.spec#L82
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
The text was updated successfully, but these errors were encountered: