You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Match platform aliases when looking up packages for a platform #612
dbc matches registry packages to a platform in two different ways:
Driver.GetPackage and hostBuildMissing compare the raw platform tuple of the index.
lockArtifacts and publishedArtifacts group packages by canonical target (resolution.CanonicalTarget: darwin → macos, x86_64 → amd64, aarch64 → arm64, bare linux → linux_*_gnu).
For an index that lists only darwin_arm64, on a macos_arm64 host:
dbc lock finds no build for the host, but still records the darwin_arm64 package under the host's canonical target when the registry publishes its hash, and dbc sync installs it from the lock file.
If a version 1 lock file records a driver library checksum for the driver, dbc lock refuses to check it because it finds no host build (pinned by TestPlanV1ProofWithAliasHostBuild).
hostBuildMissing matches raw tuples on purpose. If only this check matched aliases, dbc lock would pass the host tuple macos_arm64 to GetPackage, which would fail because the index lists only darwin_arm64.
Activity
fix: consistently match platforms by canonical target (#630)