Skip to content

Commit 677f962

Browse files
authored
Ensure tags maintain - in package names within tags (#37009)
* handle _ in the package name * Update eng/scripts/Language-Settings.ps1
1 parent a942d7a commit 677f962

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eng/scripts/Language-Settings.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ function Get-python-PackageInfoFromPackageFile ($pkg, $workingDirectory)
9292
$pkg.Basename -match $SDIST_PACKAGE_REGEX | Out-Null
9393

9494
$pkgId = $matches["package"]
95+
$pkgId = $pkgId.Replace("_","-")
9596
$docsReadMeName = $pkgId -replace "^azure-" , ""
97+
9698
$pkgVersion = $matches["versionstring"]
9799

98100
$workFolder = "$workingDirectory$($pkg.Basename)"

0 commit comments

Comments
 (0)