Skip to content

Commit

Permalink
[build.ps1] Add outputFolder option
Browse files Browse the repository at this point in the history
- Fixes Azure#15127
  • Loading branch information
chamons committed Jul 23, 2021
1 parent 838f9aa commit 73ae0e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eng/scripts/build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Requires -Version 7.0
param($filter, [switch]$clean, [switch]$vet, [switch]$generate, [switch]$skipBuild, $config = "autorest.md")
param([string]$filter, [switch]$clean, [switch]$vet, [switch]$generate, [switch]$skipBuild, [string]$config = "autorest.md", [string]$outputFolder)

. $PSScriptRoot/meta_generation.ps1

Expand Down Expand Up @@ -44,7 +44,9 @@ $keys | ForEach-Object { $sdks[$_] } | ForEach-Object {
}

$autorestVersion = "@autorest/go@4.0.0-preview.23"
$outputFolder = $_.path
if ($outputFolder -eq '') {
$outputFolder = $_.path
}
$root = $_.root
autorest --use=$autorestVersion --go --track2 --go-sdk-folder=$root --output-folder=$outputFolder --file-prefix="zz_generated_" --clear-output-folder=false $autorestPath
if ($removeAutorestFile) {
Expand Down

0 comments on commit 73ae0e4

Please sign in to comment.