Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions eng/scripts/Update-VcpkgBeta.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,15 @@ try {
$rawVcpkgConfig = Get-Content -Raw -Path $vcpkgConfigPath
$vcpkgConfig = ConvertFrom-Json $rawVcpkgConfig

$azSdkRepoBaseline = (Get-Content $RepoRoot/vcpkg.json -Raw -ErrorAction SilentlyContinue | ConvertFrom-Json).'builtin-baseline'
if ($azSdkRepoBaseline -and $vcpkgConfig.'default-registry'.baseline) {
$vcpkgConfig.'default-registry'.baseline = $azSdkRepoBaseline
}

$vcpkgConfig.registries[0].baseline = $baseHash
if (!($vcpkgConfig.registries[0].packages -contains $VcpkgPortName)) {
$vcpkgConfig.registries[0].packages += $VcpkgPortName
$vcpkgConfig.registries[0].packages = $vcpkgConfig.registries[0].packages | Sort-Object
}

$vcpkgConfigJson = ConvertTo-Json $vcpkgConfig -Depth 100
Expand Down