Skip to content

Commit

Permalink
Use generate flag in Update-Go-GeneratedSdks
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Sep 25, 2023
1 parent 7d94932 commit 29bdb03
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,21 @@ function Update-Go-GeneratedSdks([string]$PackageDirectoriesFile) {
$packageDirectories = Get-Content $PackageDirectoriesFile | ConvertFrom-Json

$directoriesWithErrors = @()

Invoke-LoggedCommand "npm install -g autorest"

foreach ($directory in $packageDirectories) {
Push-Location $RepoRoot
try {
Write-Host 'Generating projects under directory ' -ForegroundColor Green -NoNewline
Write-Host "$directory" -ForegroundColor Yellow
Write-Host "`n`n======================================================================"
Write-Host "Generating projects under directory '$directory'" -ForegroundColor Yellow
Write-Host "======================================================================`n"

./eng/scripts/build.ps1 -Filter $directory
./eng/scripts/build.ps1 -Filter $directory -Generate -Vet
}
catch {
Write-Host "##[error]Error generating project under directory $directory"
Write-Host $_.Exception.Message
$directoriesWithErrors += $directory
}
finally {
Expand Down

0 comments on commit 29bdb03

Please sign in to comment.