fgrehm / vagrant-cachier

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

Composer Cache #118

Closed wstaples closed 9 years ago

wstaples commented 9 years ago

I have vagrant-cachier installed and its working great for ruby and apt however it does not appear to be caching anything for composer. in my vagrant file I have the line config.cache.enable :composer

I do not have composer installed at startup. It gets installed via a chef recipe. I suspect that may be the issue. Is there anyway I can force enable this feature?

fgrehm commented 9 years ago

Unfortunately there's no easy way we can force enable it at the moment, but you have two ways to work around that:

  1. You can install php / composer on a separate provisioning step and the plugin will detect that is installed and will set things up
  2. Or, you can use the generic cache bucket and manually configure composer's cache dir

Hope that helps!