diff --git a/build.psm1 b/build.psm1 index 617fc07f0..0b0d2517c 100644 --- a/build.psm1 +++ b/build.psm1 @@ -108,7 +108,7 @@ function Start-DocumentationBuild if ($null -eq $platyPS -or ($platyPS | Sort-Object Version -Descending | Select-Object -First 1).Version -lt [version]0.12) { Write-Verbose -verbose "platyPS module not found or below required version of 0.12, installing the latest version." - Install-Module -Force -Name platyPS -Scope CurrentUser + Install-Module -Force -Name platyPS -Scope CurrentUser -Repository PSGallery } if (-not (Test-Path $markdownDocsPath)) { diff --git a/tools/appveyor.psm1 b/tools/appveyor.psm1 index 1614eba22..745e2410f 100644 --- a/tools/appveyor.psm1 +++ b/tools/appveyor.psm1 @@ -16,7 +16,7 @@ function Invoke-AppVeyorInstall { else { # Visual Studio 2017 build (has already Pester v3, therefore a different installation mechanism is needed to make it also use the new version 4) Write-Verbose -Verbose "Installing Pester via Install-Module" - Install-Module -Name Pester -Force -SkipPublisherCheck -Scope CurrentUser + Install-Module -Name Pester -Force -SkipPublisherCheck -Scope CurrentUser -Repository PSGallery } } @@ -28,7 +28,7 @@ function Invoke-AppVeyorInstall { } else { Write-Verbose -Verbose "Installing platyPS via Install-Module" - Install-Module -Name platyPS -Force -Scope CurrentUser -RequiredVersion $platyPSVersion + Install-Module -Name platyPS -Force -Scope CurrentUser -RequiredVersion $platyPSVersion -Repository PSGallery } # the build script sorts out the problems of WMF4 and earlier versions of dotnet CLI diff --git a/tools/releaseBuild/Image/DockerFile b/tools/releaseBuild/Image/DockerFile index 6f399de1c..96ad83433 100644 --- a/tools/releaseBuild/Image/DockerFile +++ b/tools/releaseBuild/Image/DockerFile @@ -16,7 +16,7 @@ RUN Import-Module PackageManagement; ` Import-Module ./containerFiles/dockerInstall.psm1; ` Install-ChocolateyPackage -PackageName git -Executable git.exe; ` Install-ChocolateyPackage -PackageName nuget.commandline -Executable nuget.exe -Cleanup; ` - Install-Module -Force -Name platyPS; ` + Install-Module -Force -Name platyPS -Repository PSGallery; ` Invoke-WebRequest -Uri https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1 -outfile C:/dotnet-install.ps1; ` C:/dotnet-install.ps1 -Channel Release -Version 2.1.4; ` Add-Path C:/Users/ContainerAdministrator/AppData/Local/Microsoft/dotnet;