sudo icon indicating copy to clipboard operation
sudo copied to clipboard

5.4.7 release includes some mac dot underscore files

Open pdohertybcov opened this issue 3 years ago • 3 comments

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

pdohertybcov avatar Sep 07 '21 16:09 pdohertybcov

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 avatar Oct 11 '21 12:10 CoreyLivingston

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

CoreyLivingston avatar Oct 11 '21 14:10 CoreyLivingston

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

petracvv avatar Nov 17 '21 22:11 petracvv