whyrusleeping / gx-go

gx subtool for golang
MIT License
80 stars 28 forks source link

Avoid leaving partially installed packages #34

Open Stebalien opened 6 years ago

Stebalien commented 6 years ago

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.