Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
snap
  • Loading branch information
benbp authored and azure-sdk committed Nov 21, 2024
commit 42c23221a6a2fe449034eae02e77207a9a44d132
8 changes: 4 additions & 4 deletions eng/common/scripts/Helpers/PSModule-Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ function Install-ModuleIfNotInstalled()
)

# List of modules+versions we want to replace with internal feed sources for reliability, security, etc.
$mirrorFeedOverrides = @{
'powershell-yaml;0.4.7' = 'https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-tools/nuget/v2'
$packageFeedOverrides = @{
'powershell-yaml' = 'https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-tools/nuget/v2'
}

try {
Expand All @@ -81,8 +81,8 @@ function Install-ModuleIfNotInstalled()

$repositoryUrl = if ($repositoryUrl) {
$repositoryUrl
} elseif ($mirrorFeedOverrides.Contains("${moduleName};${version}")) {
$mirrorFeedOverrides["${moduleName};${version}"]
} elseif ($mirrorFeedOverrides.Contains("${moduleName}")) {
$mirrorFeedOverrides["${moduleName}"]
} else {
$DefaultPSRepositoryUrl
}
Expand Down