Skip to content

Commit 3091b74

Browse files
authored
[eng] Print the debug log when run Save-PSResource (Azure#27533)
1 parent 4a46cb4 commit 3091b74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/PublishModules.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,9 +493,9 @@ function Save-PackageLocally {
493493
# We try to download the package from the PSRepositoryUrl as we are likely intending to use the existing version of the module.
494494
# If the module not found in PSRepositoryUrl, the following command would fail and hence publish to local repo process would fail as well
495495
if (Test-Path Env:\DEFAULT_PS_REPOSITORY_URL) {
496-
Save-PSResource -Name $ModuleName -Version $RequiredVersion -Path $TempRepoPath -Repository $Env:DEFAULT_PS_REPOSITORY_NAME -Credential $credentialsObject -AsNupkg -TrustRepository
496+
Save-PSResource -Name $ModuleName -Version $RequiredVersion -Path $TempRepoPath -Repository $Env:DEFAULT_PS_REPOSITORY_NAME -Credential $credentialsObject -AsNupkg -TrustRepository -Verbose
497497
} else {
498-
Save-PSResource -Name $ModuleName -Version $RequiredVersion -Path $TempRepoPath -Repository PSGallery -AsNupkg -TrustRepository
498+
Save-PSResource -Name $ModuleName -Version $RequiredVersion -Path $TempRepoPath -Repository PSGallery -AsNupkg -TrustRepository -Verbose
499499
}
500500
$NupkgFilePath = Join-Path -Path $TempRepoPath -ChildPath "$ModuleName.$RequiredVersion.nupkg"
501501
$ModulePaths = $env:PSModulePath -split ';'

0 commit comments

Comments
 (0)