Skip to content

Commit adda17f

Browse files
benbpazure-sdk
authored andcommitted
Unregister repository after module install
1 parent 2331a3e commit adda17f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eng/common/scripts/Helpers/PSModule-Helpers.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ function installModule([string]$moduleName, [string]$version, $repoUrl) {
102102
throw "Failed to install module $moduleName with version $version"
103103
}
104104

105+
# Unregister repository as it can cause overlap issues with `dotnet tool install`
106+
# commands using the same devops feed
107+
Unregister-PSRepository -Name $repoUrl
108+
105109
return $modules[0]
106110
}
107111

0 commit comments

Comments
 (0)