Skip to content

Commit f73a00d

Browse files
committed
Try to debug PSDepend failure
1 parent 3b1ada9 commit f73a00d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ steps:
1010
- task: gittools.gitversion.gitversion-task.GitVersion@3
1111
displayName: GitVersion
1212

13-
## As long as we're calling build.ps1, we don't need to bootstrap separately
14-
# - powershell: .\bootstrap.ps1
15-
# displayName: 'Restore pre-requisites'
13+
# As long as we're calling build.ps1, we don't need to bootstrap separately
14+
- powershell: .\bootstrap.ps1
15+
displayName: 'Restore pre-requisites'
1616

1717
- powershell: .\build.ps1 -OutputDirectory $(Build.ArtifactStagingDirectory)\$(Build.DefinitionName) -Version $(GitVersion.AssemblySemVer) -Verbose
1818
displayName: 'Run build script'

bootstrap.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Push-Location $PSScriptRoot -StackName bootstrap-stack
1010
# # This would probably work, if the default gallery was trusted ...
1111
# Install-Module Pester -RequiredVersion 4.4.0 -Scope CurrentUser -Repository PSGallery -SkipPublisherCheck
1212
# Install-Module Configuration -RequiredVersion 1.3.1 -Scope CurrentUser -Repository PSGallery -SkipPublisherCheck
13-
if (!(Get-Module PSDepends -ListAvailable)) {
13+
if (!(Get-Module PSDepend -ListAvailable)) {
1414
$Policy = (Get-PSRepository PSGallery).InstallationPolicy
1515
try {
1616
Set-PSRepository PSGallery -InstallationPolicy Trusted
@@ -36,7 +36,7 @@ if (!(Get-Module PSDepends -ListAvailable)) {
3636
try {
3737
Write-Verbose "Updating dependencies"
3838
Import-Module PSDepend -ErrorAction Stop
39-
Invoke-PSDepend -Import -Force -ErrorAction Stop
39+
Invoke-PSDepend -Import -Force -ErrorAction Stop -Verbose
4040
} catch {
4141
Write-Warning "Unable to restore dependencies. Please review errors:"
4242
throw

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $null = $PSBoundParameters.Remove('InstallToolScope')
2222
$ErrorActionPreference = "Stop"
2323
Push-Location $PSScriptRoot -StackName BuildBuildModule
2424
try {
25-
& "$PSScriptRoot\bootstrap.ps1" -Scope $InstallToolScope
25+
Import-Module Configuration
2626

2727
# Build ModuleBuilder with ModuleBuilder:
2828
Write-Verbose "Compiling ModuleBuilderBootstrap module"

0 commit comments

Comments
 (0)