Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: allow user to specify directory for caching downloaded files #202

Open
saintaardvark opened this issue Jan 28, 2016 · 0 comments

Comments

@saintaardvark
Copy link

Hi there -- I tripped over a problem while using the ChefDK on OS X. I was running a ChefSpec test for Debian 8.2. The platform file isn't included in the version of fauxhai included in the ChefDK, so fauxhai tried to download it...only it was unable to save it locally because the permissions were restricted:

Failures:
  1) neteng_network_tools::default On debian 8.0 installs hping3
     Failure/Error: runner.converge(described_recipe)
     Errno::EACCES:
       Permission denied @ rb_sysopen - /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/fauxhai-2.3.0/lib/fauxhai/platforms/debian/8.0.json
     # ./spec/unit/recipes/default_spec.rb:26:in `block (6 levels) in <top (required)>'
     # ./spec/unit/recipes/default_spec.rb:30:in `block (6 levels) in <top (required)>'

It would be nice if fauxhai could save that somewhere else (~/.fauxhai/platforms, maybe?) -- either if configured, or just as a fallback mechanism if saving to the original directory failed.

I realize that this could also be directed at the ChefDK project to change permissions for the installation; however, I think this could potentially be useful for other fauxhai users too.

Thanks, and please let me know if you need any further information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant