fgrehm / vagrant-cachier

Caffeine reducer
http://fgrehm.viewdocs.io/vagrant-cachier
MIT License
1.08k stars 111 forks source link

$HOME/.composer should not be a cache bucket #89

Closed pbuyle closed 10 years ago

pbuyle commented 10 years ago

For Composer, vagrant-cachier uses $HOME/.composer as cache bucket. But this folder is not a cache-only folder. Composer store other data in there, such as global configuration ($HOME/.composer/config.json) and globally installed packages ($HOME/.composer/composer.json, $HOME/.composer/vendor and $HOME/.composer/bin).

According to Composer documentation (see https://getcomposer.org/doc/03-cli.md#composer-cache-dir), the folder to use as cache bucket should be $HOME/.composer/cache.

fgrehm commented 10 years ago

No worries, I'll try to have a look at that

/cc @fh

fh commented 10 years ago

Good point, @pbuyle is correct here. (Though I personally like having the global composer.json shared as well, but that is obviously not sth everyone wants).

@fgrehm Are you going to tackle this one, or should I?

fgrehm commented 10 years ago

@fh be my guest :-) I'll /cc you in case I end up fixing it.

I'm scheduling this for 0.6.1 and I've tagged it as a bug

fgrehm commented 10 years ago

This was fixed in git, a new release will come out with it as soon as I'm done with the stuff tagged with the v1.0.0 milestone