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

get PowerShellGet from the PowerShell Gallery #5452

Merged

Conversation

TravisEz13
Copy link
Member

get PowerShellGet from the PowerShell Gallery as this is the production location of the module and more reliable than myget

build.psm1 Outdated
@@ -601,7 +601,7 @@ function Restore-PSModuleToBuild
Restore-PSModule -Destination $modulesDir -Name @(
# PowerShellGet depends on PackageManagement module, so PackageManagement module will be installed with the PowerShellGet module.
'PowerShellGet'
)
) -SourceLocation "https://www.powershellgallery.com/api/v2/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call to Restore-PSModule can be combined with the call at line # 607. The name is an array.

Restore-PSModule -Destination $modulesDir -Name @( 
         'Microsoft.PowerShell.Archive','PowerShellGet'
     ) -SourceLocation "https://www.powershellgallery.com/api/v2/"

@daxian-dbw daxian-dbw merged commit 3c7cd11 into PowerShell:master Nov 15, 2017
@TravisEz13 TravisEz13 deleted the get_powershellget_from_gallery branch November 15, 2017 21:07
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

3 participants