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

Invoke-WebRequest and Invoke-RestMethod are slow because of the progress bar #115

Open
mpiederiet opened this issue Jul 8, 2020 · 0 comments · May be fixed by #122
Open

Invoke-WebRequest and Invoke-RestMethod are slow because of the progress bar #115

mpiederiet opened this issue Jul 8, 2020 · 0 comments · May be fixed by #122

Comments

@mpiederiet
Copy link

Some of the dependency scripts (in particular PSDependScripts\Github.ps1) use Invoke-WebRequest and Invoke-Restmethod to download files. As described on multiple sites, this is very slow because of the shown progress bar: PowerShell/PowerShell#2238.

Proposed solution:
(PSDepend\Github.ps1, Line 448, replace with following lines):
$PreviousProgressPreference=$ProgressPreference
$ProgressPreference='SilentlyContinue'
Invoke-RestMethod -Uri $URL -OutFile $OutFile
$ProgressPreference=$PreviousProgressPreference

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 a pull request may close this issue.

1 participant