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
In the file install.ps1 there is an external uri dependency to download 7zip, it needs to be made as an attribute, so that we can download it from any internally hosted location.
In the file install.ps1 there is an external uri dependency to download 7zip, it needs to be made as an attribute, so that we can download it from any internally hosted location.
$7zaExe = Join-Path $tempDir '7za.exe'
$unzipMethod = '7zip'
$useWindowsCompression = $env:chocolateyUseWindowsCompression
if ($useWindowsCompression -ne $null -and $useWindowsCompression -eq 'true') {
Write-Output 'Using built-in compression to unzip'
$unzipMethod = 'builtin'
} elseif (-Not (Test-Path ($7zaExe))) {
Write-Output "Downloading 7-Zip commandline tool prior to extraction."
download 7zip
Download-File 'https://chocolatey.org/7za.exe' "$7zaExe"
}
Also change the logic to use archive_file for Chef 15 and above...
if CHEF::VERSION.to_i >= 15
archive_file 'whatever'
else
include_recipe '7zip::default'
whatever 7zip resource
end
The text was updated successfully, but these errors were encountered: