lee-dohm / package-sync

Atom package synchronization across machines
https://atom.io/packages/package-sync
MIT License
61 stars 10 forks source link

Allow conditional package installation #14

Open ForNeVeR opened 9 years ago

ForNeVeR commented 9 years ago

Consider that I'm using haskell-ghc-mod package and I own multiple machines.

Not all of my machines have ghc-mod installed, so I don't want to install haskell-ghc-mod on all of them (because it throws errors if installed in a wrong environment). But I'd still like to store haskell-ghc-mod in my packages.cson file so I can install it only on the proper machines. I don't want it to be automatically blindly installed when I call package-sync:sync.

One solution I see is to have a single packages.cson for all machines but some programmatic control over it (so, for example, I'd have filtered my packages.cson in my init.coffee based on the machine name or something like that).

So, well, basically I'm requesting programmatic control over loading and saving packages.cson file via plugin API or some other options to deal with this use case.

ForNeVeR commented 9 years ago

Hm, maybe it will be better to install all packages and automatically disable some of them?

pierrepaullavoie commented 8 years ago

I also think package-sync should save the enable/disable state of the package. In fact, because it didn't I had to manually disable certain packages afterwards. These packages were disabled on the original machine.

ForNeVeR commented 8 years ago

Yes that's a good idea.