fix: maunal set autorest core version for track2 build to prevent strange core version default fetch
@@ -9,6 +9,7 @@ param(
[switch]$format,
[switch]$tidy,
[string]$config = "autorest.md",
+ [string]$autorestVersion = "3.7.3",
[string]$goExtension = "@autorest/go@4.0.0-preview.36",
[string]$outputFolder
)
@@ -40,7 +41,7 @@ function Process-Sdk ()
{
$outputFolder = $currentDirectory
}
- autorest --use=$goExtension --go --track2 --output-folder=$outputFolder --file-prefix="zz_generated_" --clear-output-folder=false --go.clear-output-folder=false $autorestPath
+ autorest --version=$autorestVersion --use=$goExtension --go --track2 --output-folder=$outputFolder --file-prefix="zz_generated_" --clear-output-folder=false --go.clear-output-folder=false $autorestPath
if ($LASTEXITCODE)
{
Write-Host "##[error]Error running autorest.go"
