21 comments

[ 5.4 ms ] story [ 66.3 ms ] thread
Just wanted to say that this name is already used by (quite popular) emacs Clojure IDE plugin. https://github.com/clojure-emacs/cider
Is this the type of thing that could have been built in to a fork of Homebrew and perhaps if people liked it been incorporated into the main distro?

I understand why things proliferate like this but it can be frustrating.

I contemplated doing that (something like the brew-cask syntax), but it ended up not really being worth the complexity, especially when you consider that not all of the commands necessarily correlate to those in Homebrew (e.g. setting defaults). Might consider doing something like that in the future though, if it ends up that people aside from me want this.

It's also worth noting that even projects such as Homebrew Cask are also merely extensions to Homebrew (AFAIK, there aren't any plans of it getting merged in anytime soon).

Mmm, homebrewed cider...

But seriously, I really like this idea. You should definitely PR this into Homebrew though.

Is it possible to create the configuration file from the current machine state, or do you have to create the configuration by hand?
Right now it's updated whenever you install something with cider. You can update it with whatever you currently have installed using `cider [cask] missing`. Defaults are the same way - cider supports the same syntax as the `defaults` command, so you should be able to use it as a drop-in replacement in most cases.

Symlinks and scripts are manual, but I plan on changing that: https://github.com/msanders/cider/issues/3

`cider missing` fails when it can't find a formula and writes nothing to the file...
Would you mind submitting an issue here with more info? https://github.com/msanders/cider/issues

Edit: pretty sure I fixed the bug - could you verify by trying the version on master?

    pip install https://github.com/msanders/cider/archive/master.zip
Do you have to install on your own homebrew and homebrew cask?

I'm asking, because I am in the process of creating an Ansible playbook (http://docs.ansible.com/homebrew_module.html and http://docs.ansible.com/homebrew_cask_module.html) and I want to write a small bootstrap script to install homebrew and homebrew cask first.

It will install cask for you, but homebrew needs to be installed via the script on http://brew.sh/#install (you also need to have Xcode or Apple's cli tools installed).
I'd like to recommend Mackup for backing up machine config (and keeping them in sync) https://github.com/lra/mackup.
I actually tried mackup a few weeks ago and had to wipe my machine because it messed up my settings so much (who would've thought backup could be such a dangerous command?)

Cider's approach is much safer since all it does is reinstall the components & settings you've specifically allotted it to. Rather than move all your various configs and caches around in an attempt to keep them in sync (which is, IMO, subject to headaches and not worth the hassle), the whole point of Cider is to keep as little state on your machine as possible so you can stop thinking about this stuff.

Anyone else just skim the title and then get disappointed when it didn't actually relate to homemade booze?
See also http://osxc.github.io which builds upon Ansible (which is of course also built in Python).

But what if I use Homebrew to install a package (pyenv) to manage my Pythons to install cider to bootstrap Homebre...

StackOverflowException thrown. Comment aborted.

There was once a similar project also called Cider, created by Corey Donohoe (atmos) from GitHub. It was renamed to cinderella because of trademark infringement, so you might want to check that out: https://github.com/atmos/cider
This is good to know. Any suggestions for a better name?