Skip to content

[Bug] scoop config proxy is not Compatible with pwsh 7 #6698

Description

@owenstake

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions