mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Get PowerShellGet from the PowerShell Gallery (#5452)
This commit is contained in:
1 parent
5d8999e8b5
commit
3c7cd11152
1 file changed
+1
-5
+1
-5
@@ -597,14 +597,10 @@ function Restore-PSModuleToBuild
|
||||
|
||||
$modulesDir = Join-Path -Path $publishPath -ChildPath "Modules"
|
||||
|
||||
# Restore modules from myget feed
|
||||
# Restore modules from powershellgallery feed
|
||||
Restore-PSModule -Destination $modulesDir -Name @(
|
||||
# PowerShellGet depends on PackageManagement module, so PackageManagement module will be installed with the PowerShellGet module.
|
||||
'PowerShellGet'
|
||||
)
|
||||
|
||||
# Restore modules from powershellgallery feed
|
||||
Restore-PSModule -Destination $modulesDir -Name @(
|
||||
'Microsoft.PowerShell.Archive'
|
||||
) -SourceLocation "https://www.powershellgallery.com/api/v2/"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user