It would be nice if we could add some tempdir to the go path (e.g., $GOPATH/src/gx/.tmp123/), install there, and then move to the real GOPATH once everything is rewritten/working. There are obviously other solutions, this is just the one that seems the most fool-proof.
Currently, if installing a package fails for some reason, we leave the partial install in-place (see https://github.com/ipfs/go-ipfs/issues/4915#issuecomment-378408231).
It would be nice if we could add some tempdir to the go path (e.g.,
$GOPATH/src/gx/.tmp123/
), install there, and then move to the real GOPATH once everything is rewritten/working. There are obviously other solutions, this is just the one that seems the most fool-proof.