Fix go tag discover (#7108)
For the tag discover we were splitting the tag name on '/v' but in some case /v existed for other reasons beyond the version. To workaround this case we find the last instance of that and split on it instead.
This commit is contained in:
Родитель
4acd086396
Коммит
d6cf614a89
|
@ -140,6 +140,7 @@
|
|||
"sdk/resourcemanager/labservices/armlabservices","1.2.0","","Resource Management - Lab Services","Lab Services","resourcemanager/labservices/armlabservices","","","mgmt","true","","11/24/2023","08/26/2022","","","","","","","",""
|
||||
"sdk/resourcemanager/resources/armlinks","1.2.0","","Resource Management - Links","Links","resourcemanager/resources/armlinks","","","mgmt","true","","11/23/2023","05/16/2022","","","","","","","",""
|
||||
"sdk/resourcemanager/loadtesting/armloadtesting","1.2.0","","Resource Management - Load Testing","Load Testing","resourcemanager/loadtesting/armloadtesting","","","mgmt","true","","11/24/2023","11/21/2022","","","","","","","",""
|
||||
"sdk/resourcemanager/loadtestservice/armloadtestservice","1.0.1","","Resource Management - Loadtestservice","Loadtestservice","resourcemanager/loadtestservice/armloadtestservice","NA","NA","mgmt","true","","","","","","","","","","","Needs Review"
|
||||
"sdk/resourcemanager/resources/armlocks","1.2.0","","Resource Management - Locks","Locks","resourcemanager/resources/armlocks","","","mgmt","true","","11/23/2023","05/16/2022","","","","","","","",""
|
||||
"sdk/resourcemanager/operationalinsights/armoperationalinsights","1.2.0","2.0.0-beta.3","Resource Management - Log Analytics","Log Analytics","resourcemanager/operationalinsights/armoperationalinsights","","","mgmt","true","","11/24/2023","05/17/2022","","","","","","","",""
|
||||
"sdk/resourcemanager/logic/armlogic","1.2.0","","Resource Management - Logic Apps","Logic Apps","resourcemanager/logic/armlogic","","","mgmt","true","","11/24/2023","05/18/2022","","","","","","","",""
|
||||
|
@ -246,6 +247,11 @@
|
|||
"sdk/resourcemanager/testbase/armtestbase","","0.7.0","Resource Management - Test Base","Test Base","resourcemanager/testbase/armtestbase","","","mgmt","true","","","","","","","","","","",""
|
||||
"sdk/resourcemanager/timeseriesinsights/armtimeseriesinsights","1.2.0","","Resource Management - Time Series Insights","Time Series Insights","resourcemanager/timeseriesinsights/armtimeseriesinsights","","","mgmt","true","","11/24/2023","06/10/2022","","","","","","","",""
|
||||
"sdk/resourcemanager/trafficmanager/armtrafficmanager","1.3.0","","Resource Management - Traffic Manager","Traffic Manager","resourcemanager/trafficmanager/armtrafficmanager","","","mgmt","true","","11/24/2023","05/17/2022","","","","","","","",""
|
||||
"sdk/resourcemanager/videoanalyzer/armvideoanalyzer","","0.4.2","Resource Management - Videoanalyzer","Videoanalyzer","resourcemanager/videoanalyzer/armvideoanalyzer","NA","NA","mgmt","true","","","","","","","","","","","Needs Review"
|
||||
"sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder","2.2.0","","Resource Management - Virtualmachineimagebuilder","Virtualmachineimagebuilder","resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder","NA","NA","mgmt","true","","","","","","","","","","","Needs Review"
|
||||
"sdk/resourcemanager/visualstudio/armvisualstudio","","0.6.0","Resource Management - Visualstudio","Visualstudio","resourcemanager/visualstudio/armvisualstudio","NA","NA","mgmt","true","","","","","","","","","","","Needs Review"
|
||||
"sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple","1.2.0","","Resource Management - Vmwarecloudsimple","Vmwarecloudsimple","resourcemanager/vmwarecloudsimple/armvmwarecloudsimple","NA","NA","mgmt","true","","","","","","","","","","","Needs Review"
|
||||
"sdk/resourcemanager/voiceservices/armvoiceservices","1.1.0","","Resource Management - Voiceservices","Voiceservices","resourcemanager/voiceservices/armvoiceservices","NA","NA","mgmt","true","","","","","","","","","","","Needs Review"
|
||||
"sdk/resourcemanager/web/armweb","","0.2.1","Resource Management - Web","Web","resourcemanager/web/armweb","","","mgmt","true","","","","","","","","","","",""
|
||||
"sdk/resourcemanager/webpubsub/armwebpubsub","1.2.0","1.3.0-beta.1","Resource Management - Web PubSub","Web PubSub","resourcemanager/webpubsub/armwebpubsub","","","mgmt","true","","11/27/2023","05/16/2022","","","","","","","",""
|
||||
"sdk/resourcemanager/windowsesu/armwindowsesu","","0.7.0","Resource Management - Window SESU","Window SESU","resourcemanager/windowsesu/armwindowsesu","","","mgmt","true","","","","","","","","","","",""
|
||||
|
|
|
|
@ -142,14 +142,15 @@ function GetPackageVersions($lang, [DateTimeOffset]$afterDate = [DateTimeOffset]
|
|||
|
||||
if ($tagSplit)
|
||||
{
|
||||
$sp = $tagName -split $tagSplit
|
||||
if ($sp.Length -ne 2) {
|
||||
Write-Verbose "Failed to split tag correctly in language '$lang' with tag '$tagName'."
|
||||
$splitIndex = $tagName.LastIndexOf($tagSplit)
|
||||
|
||||
if ($splitIndex -lt 0) {
|
||||
Write-Verbose "Failed to file '$tagSplit' in tag in language '$lang' for tag '$tagName'."
|
||||
continue
|
||||
}
|
||||
|
||||
$package = $sp[0]
|
||||
$version = $sp[1]
|
||||
$package = $tagName.Substring(0, $splitIndex)
|
||||
$version = $tagName.Substring($splitIndex + $tagSplit.Length)
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче