Skip to content

Commit 6567757

Browse files
authored
Use an ordered hash table for generateInfo. (Azure#18611)
Fixed the issue Azure/autorest.powershell#938
1 parent 39b7bab commit 6567757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/Gen2Master/MoveFromGeneration2Master.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Function Move-Generation2Master {
120120
#EndRegion
121121

122122
#Region generate-info.json Here have a issue that user may not use latest version to generate the code.
123-
$generateInfo = @{}
123+
$generateInfo = [ordered]@{}
124124
$repo = "https://github.com/Azure/azure-rest-api-specs"
125125
$commit = git ls-remote $repo HEAD
126126
$generateInfo.Add("swagger_commit", $commit.Substring(0, 40))
@@ -408,4 +408,4 @@ Function Copy-Template {
408408

409409
}
410410
}
411-
}
411+
}

0 commit comments

Comments
 (0)