Skip to content

Commit f04f86d

Browse files
committed
fix: use Contains instead of ContainsKey on OrderedDictionary
In PowerShell 7, [ordered]@{} is System.Collections.Specialized.OrderedDictionary, which exposes Contains(key) but not ContainsKey(). The Push-Digests task (multi-arch path) failed on the first include-arm64 dispatch with: "Method invocation failed because [System.Collections.Specialized.OrderedDictionary] does not contain a method named 'ContainsKey'." The amd64-only path via Publish-Direct never hit this branch, which is why the bug lay dormant since the switch to digest-based multi-arch assembly (0bd74f9).
1 parent c1b7ec6 commit f04f86d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

firebird-docker.build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ task Push-Digests FilteredAssets, {
466466
$key = "$($asset.version)/$distribution"
467467

468468
# Push once per version+distro (all tags share the same image)
469-
if (-not $digests.ContainsKey($key)) {
469+
if (-not $digests.Contains($key)) {
470470
Write-Build Cyan "----- [$($asset.version) / $distribution / $hostArch → push-by-digest] -----"
471471

472472
$metadataFile = Join-Path ([System.IO.Path]::GetTempPath()) "metadata-$($asset.version)-$distribution.json"

0 commit comments

Comments
 (0)