Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing proxy info along when registering default repository #573

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

andrewaramsay
Copy link

I'm not sure if this was just an oversight or if it was intentionally left out, but if I specify -Proxy and/or -ProxyCredentials when calling Register-PSRepository -Default, they get ignored because they don't get passed along here. In PowerShell 6 this makes it impossible to register PS Gallery behind a proxy, since you can't set the default proxy on HttpClient.

I'm not super familiar with PowerShell testing, but it didn't look like we were doing mock/expect type testing, and setting a proxy value for real would always fail unless there was in fact a proxy running. If there is a place/approach I should use to test this, let me know and I'll try to get it added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant