You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks to me like the call to resource.home_dir should just be replaced by resource.path fir the first part of the bug. For the second, I guess make_temp_dir should not only make the directory but ensure it's empty?
Cookbook version
2.0.2
Chef-client version
12.16.42
Platform Details
Windows 10
Scenario:
Attempting to use ark to grab a 7z file (https://sourceforge.net/projects/boost/files/boost/1.62.0/boost_1_62_0.7z) and extract it to C:\Program Files(x86)\boost
Steps to Reproduce:
Expected Result:
I expect it to be able to download the file, and unpack to win_install_dir.
Actual Result:
It grabs the remote file, then extracts to a temp directory and attempts to copy it over to home_dir.
See https://github.com/chef-cookbooks/ark/blob/7559940dc37cfd672178d15571b7178f267178cb/libraries/sevenzip_command_builder.rb#L43
Additionally, on a re-run, it fails because the temp directories contents already exist and 7-zip prompts for what to do about the clash.
The text was updated successfully, but these errors were encountered: