Skip to content

Commit

Permalink
snap
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp authored and azure-sdk committed Nov 20, 2024
1 parent ca9b43b commit ff6a7a1
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit ff6a7a1

Please sign in to comment.