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

5.4.7 release includes some mac dot underscore files #156

Open
pdohertybcov opened this issue Sep 7, 2021 · 3 comments
Open

5.4.7 release includes some mac dot underscore files #156

pdohertybcov opened this issue Sep 7, 2021 · 3 comments

Comments

@pdohertybcov
Copy link

pdohertybcov commented Sep 7, 2021

The 5.4.7 release that marks this as deprecated includes a bunch of Mac's infamous ._ files.
This appears to cause Policyfile validation errors, at least if the Policy lock file was created on a Mac, and then validated on Linux.

I see errors like this on Linux:
Reason: (ChefDK::CachedCookbookModified) Cached cookbook 'sudo' (5.4.7) has been modified since the lockfile was generated. Cached cookbooks cannot be modified.

Downloading the cookbook from Supermarket directly shows the extra files that weren't present in 5.4.6

$ curl -L -O https://supermarket.chef.io:443/api/v1/cookbooks/sudo/versions/5.4.7/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   180  100   180    0     0    316      0 --:--:-- --:--:-- --:--:--   316
100 17075  100 17075    0     0  25026      0 --:--:-- --:--:-- --:--:--     0


$ tar -zxvf download
sudo/
sudo/._LICENSE
sudo/LICENSE
sudo/._CHANGELOG.md
sudo/CHANGELOG.md
sudo/resources/
sudo/metadata.json
sudo/._README.md
sudo/README.md
sudo/attributes/
sudo/recipes/
sudo/files/
sudo/templates/
sudo/metadata.rb
sudo/chefignore
sudo/._kitchen.dokken.yml
sudo/kitchen.dokken.yml
sudo/templates/default/
sudo/templates/mac_os_x/
sudo/templates/mac_os_x/._sudoers.erb
sudo/templates/mac_os_x/sudoers.erb
sudo/templates/default/._sudoer.erb
sudo/templates/default/sudoer.erb
sudo/templates/default/._sudoers.erb
sudo/templates/default/sudoers.erb
sudo/files/._README
sudo/files/README
sudo/recipes/._default.rb
sudo/recipes/default.rb
sudo/attributes/._default.rb
sudo/attributes/default.rb
sudo/resources/default.rb
@CoreyLivingston
Copy link

CoreyLivingston commented Oct 11, 2021

are you using bash or zsh on your mac? We're still investigating but we hit this issue and switching to bash resolved it.

@CoreyLivingston
Copy link

Actually, we now believe this is related to having a bad cache: rm -rf ~/.chef-workstation/cache

@petracvv
Copy link

Any chance this cookbook can get a similarly fixed release like the chef_client_updater cookbook did a week or so ago?

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

No branches or pull requests

3 participants