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

The ruby files in files/ need to be moved into libraries/ #317

Open
lamont-granquist opened this issue May 4, 2018 · 0 comments
Open

The ruby files in files/ need to be moved into libraries/ #317

lamont-granquist opened this issue May 4, 2018 · 0 comments
Labels
Type: Bug Does not work as expected.

Comments

@lamont-granquist
Copy link
Contributor

When Chef::Config[:no_lazy_load] = true is set in config.rb the files will not get synch'd and chef-client will error with:

LoadError
---------
cannot load such file -- /private/var/chef/cache/cookbooks/audit/files/default/handler/audit_report

The files that are in files/ or in templates/ need to be consumed by cookbook_file or template resources explicitly. Those aren't general-purpose file directories and lazy_loading breaks this behavior.

We found this in our own internal use at Chef where we had lazy loading turned on, and this prevented using the audit cookbook.

@lamont-granquist lamont-granquist added the Type: Bug Does not work as expected. label May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Does not work as expected.
Development

No branches or pull requests

1 participant