bundle exec knife fail with attempt to use deprecated `untaint` method
chouetz opened this issue · comments
Nicolas Schweitzer commented
Description
Issue using knife prevents execution because using a deprecated method
/Users/nicolas.schweitzer/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/knife-18.3.0/lib/chef/knife/core/gem_glob_loader.rb:81:in `block in find_files_latest_gems': undefined method `untaint' for "/Users/nicolas.schweitzer/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/knife-18.3.0/lib/chef/knife/acl_add.rb":String (NoMethodError)
end.flatten.select { |file| File.file? file.untaint }
I've created a tentative fix PR
Chef Version
18.3.0
Platform Version
Macos m1 13.6.2
Replication Case
Client Output
Stacktrace
Thomas Powell commented
Fix PR merged, target 18.4 release.