ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.37k stars 1.41k forks source link

[Bug] scoop do not obey `proxy` configuration #6238

Open xtellaris opened 17 hours ago

xtellaris commented 17 hours ago

Bug Report

Current Behavior

scoop update follows the former proxy port 7890 after changing it to 17890 by scoop config, and throws connection fails.

I've tried scoop config rm proxy, but it behaved the same.

anyway, thanks for your work about this remarkable package manager! ❤️

Expected Behavior

scoop should obey the proxy configuration set by scoop config.

Additional context/output

Here's output from my terminal: ```log PS C:\Users\x86ar> scoop update Updating Scoop... fatal: unable to access 'https://github.com/ScoopInstaller/Scoop.git/': Failed to connect to 127.0.0.1 port 7890 after 2025 ms: Could not connect to server + CategoryInfo : NotSpecified: (fatal: unable t...nnect to server:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError + PSComputerName : localhost Updating Buckets... fatal: unable to access 'https://github.com/ScoopInstaller/Main.git/': Failed to connect to 127.0.0.1 port 7890 after 2 021 ms: Could not connect to server + CategoryInfo : NotSpecified: (fatal: unable t...nnect to server:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError + PSComputerName : localhost fatal: unable to access 'https://github.com/ScoopInstaller/Extras/': Failed to connect to 127.0.0.1 port 7890 after 201 8 ms: Could not connect to server + CategoryInfo : NotSpecified: (fatal: unable t...nnect to server:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError + PSComputerName : localhost fatal: unable to access 'https://github.com/ScoopInstaller/Versions/': Failed to connect to 127.0.0.1 port 7890 after 2 023 ms: Could not connect to server + CategoryInfo : NotSpecified: (fatal: unable t...nnect to server:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError + PSComputerName : localhost fatal: unable to access 'https://github.com/matthewjberger/scoop-nerd-fonts/': Failed to connect to 127.0.0.1 port 7890 after 2022 ms: Could not connect to server + CategoryInfo : NotSpecified: (fatal: unable t...nnect to server:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError + PSComputerName : localhost fatal: unable to access 'https://github.com/ScoopInstaller/Java/': Failed to connect to 127.0.0.1 port 7890 after 2024 ms: Could not connect to server + CategoryInfo : NotSpecified: (fatal: unable t...nnect to server:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError + PSComputerName : localhost ```

Possible Solution

System details

Windows version: 11

OS architecture: 64bit (x86_64)

PowerShell version:

PS C:\Users\x86ar> echo $($PSVersionTable.PSVersion)

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      22621  4391

Additional software: may not related to thirt party applications or buckets.

Scoop Configuration

{
    "last_update":  "2024-11-18T15:32:45.5695132+08:00",
    "gh_token": "mytoken",
    "aria2-enabled":  false,
    "scoop_branch":  "master",
    "scoop_repo":  "https://github.com/ScoopInstaller/Scoop",
    "proxy":  "127.0.0.1:17890"
}
Super1Windcloud commented 10 hours ago

也许你设置了 http_proxy 环境变量