Skip to content

Commit 94e8573

Browse files
thomasraynerbergmeister
authored andcommittedSep 3, 2019
Added instruction to get public modules from PSGallery (#1327)
1 parent 74b9f82 commit 94e8573

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎build.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function Start-DocumentationBuild
108108
if ($null -eq $platyPS -or ($platyPS | Sort-Object Version -Descending | Select-Object -First 1).Version -lt [version]0.12)
109109
{
110110
Write-Verbose -verbose "platyPS module not found or below required version of 0.12, installing the latest version."
111-
Install-Module -Force -Name platyPS -Scope CurrentUser
111+
Install-Module -Force -Name platyPS -Scope CurrentUser -Repository PSGallery
112112
}
113113
if (-not (Test-Path $markdownDocsPath))
114114
{

‎tools/appveyor.psm1

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Invoke-AppVeyorInstall {
1616
else {
1717
# Visual Studio 2017 build (has already Pester v3, therefore a different installation mechanism is needed to make it also use the new version 4)
1818
Write-Verbose -Verbose "Installing Pester via Install-Module"
19-
Install-Module -Name Pester -Force -SkipPublisherCheck -Scope CurrentUser
19+
Install-Module -Name Pester -Force -SkipPublisherCheck -Scope CurrentUser -Repository PSGallery
2020
}
2121
}
2222

@@ -28,7 +28,7 @@ function Invoke-AppVeyorInstall {
2828
}
2929
else {
3030
Write-Verbose -Verbose "Installing platyPS via Install-Module"
31-
Install-Module -Name platyPS -Force -Scope CurrentUser -RequiredVersion $platyPSVersion
31+
Install-Module -Name platyPS -Force -Scope CurrentUser -RequiredVersion $platyPSVersion -Repository PSGallery
3232
}
3333

3434
# the build script sorts out the problems of WMF4 and earlier versions of dotnet CLI

‎tools/releaseBuild/Image/DockerFile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN Import-Module PackageManagement; `
1616
Import-Module ./containerFiles/dockerInstall.psm1; `
1717
Install-ChocolateyPackage -PackageName git -Executable git.exe; `
1818
Install-ChocolateyPackage -PackageName nuget.commandline -Executable nuget.exe -Cleanup; `
19-
Install-Module -Force -Name platyPS; `
19+
Install-Module -Force -Name platyPS -Repository PSGallery; `
2020
Invoke-WebRequest -Uri https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1 -outfile C:/dotnet-install.ps1; `
2121
C:/dotnet-install.ps1 -Channel Release -Version 2.1.4; `
2222
Add-Path C:/Users/ContainerAdministrator/AppData/Local/Microsoft/dotnet;

0 commit comments

Comments
 (0)
Please sign in to comment.