PowerShell / PowerShellGallery

236 stars 66 forks source link

Install-Module for various modules takes 10x-50x longer than expected #255

Open draganya opened 1 year ago

draganya commented 1 year ago

Prerequisites

Steps to reproduce

Both on local machine and on Azure hosted devops pipelines, Install-Module -Name az and other modules takes 10 to 50 times longer than usually. Az module takes 50-60 minutes.

Expected behavior

Install-Module -Name AZ installed in 3-5 minutes.

Actual behavior

Install-Module -Name AZ hangs for > 40-50 minutes

Error details

no error, just hang

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.22621.1778
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.1778
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

5.1.22621.1778

Visuals

No response

o-l-a-v commented 8 months ago

This is not a problem with the PowerShell Gallery, rather the logic used to install stuff from it. It can be done in parallel.

Add your vote to this issue instead:

Here are some examples proving install from PowerShell Gallery can be done much faster: