whyrusleeping / gx

A package management tool
MIT License
1.88k stars 110 forks source link

`gx update` expects to have the old package (being replaced) already installed #178

Open schomatis opened 6 years ago

schomatis commented 6 years ago

The gx update command expects to find the old package being replaced already installed, otherwise it fails (it doesn't try to install itself), specifically the updateCollisionCheck function is the one looking for all the dependencies.

See https://github.com/ipfs/go-ds-badger/pull/22#issuecomment-396592368.

whyrusleeping commented 6 years ago

I think there are many commands that would benefit from implicitly fetching deps as needed. Or at the very least, saying 'you have to run gx install first'

ghost commented 6 years ago

implicitly fetching deps as needed

Yes gx-workspace is doing that a lot too.