scoop config proxy is not Compatible with pwsh 7. The aria2 in proxy mode is also not Compatible .
Bug Report
Current Behavior
In pwsh7 , scoop config proxy http://xxxx:xxx, and scoop intall ripgrep failed.
Expected Behavior
In pwsh7 , scoop config proxy http://xxxx:xxx, and scoop intall ripgrep ok.
Additional context/output
NA
Possible Solution
Modify the function setup_proxy() and Invoke-CachedAria2Download() in lib/download.ps1 , add additional logic for pwsh7 to setup proxy. The proxy setting in pwsh should be [System.Net.http.httpclient]::DefaultProxy, not [net.webrequest]::defaultwebproxy in windows powershell 5.
System details
win11 x64 PowerShell 7.5.4
scoop config proxyis not Compatible with pwsh 7. The aria2 in proxy mode is also not Compatible .Bug Report
Current Behavior
In pwsh7 ,
scoop config proxy http://xxxx:xxx, andscoop intall ripgrepfailed.Expected Behavior
In pwsh7 ,
scoop config proxy http://xxxx:xxx, andscoop intall ripgrepok.Additional context/output
NA
Possible Solution
Modify the
function setup_proxy()andInvoke-CachedAria2Download()in lib/download.ps1 , add additional logic for pwsh7 to setup proxy. The proxy setting in pwsh should be[System.Net.http.httpclient]::DefaultProxy, not[net.webrequest]::defaultwebproxyin windows powershell 5.System details
win11 x64 PowerShell 7.5.4