Hi all,
There are a few bugs in Debian (and now also
golang.org/issue/15433)
where go install commands that want to recompile standard packages
(for example, -buildmode=pie or cross-building) fail because GOROOT is
read-only.
This is all perfectly understandable but it's not a good user
experience. I don't really know what would be the best option.
We could tell everyone to use the "go build" version of the same
commands succeeds, but obviously that rebuilds everything every time.
In a vaguely similar vein we could ignore permission denied errors
trying to install a package where p.Standard == true.
Having GOROOT be writable by all users seems like a _really_ bad idea.
Having some kind of per user GOROOT that's a symlink tree pointing at
the deb-installed one or an overlayfs over the deb-installed one
sounds more appealing but I'm not really sure how to implement it.
Does anyone have any other ideas for how to handle this that I haven't
thought of?
Cheers,
mwh