Problem
bakery create version copies the OS list from the latest version. If the devVersion has a different OS config (added OS, dropped OS, changed platforms), the new version won't reflect it.
Dependencies already come from image-level dependencyConstraints. OS config should too — via the devVersion.
Today
bakery create version connect 2026.03.0 --subpath 2026.03
- OS list: copied from
latest version
- Dependencies: resolved from image-level constraints
Proposal
- OS list: copied from devVersion
- Fallback: copy from
latest if no devVersions exist
- Multiple devVersions: use the first (or require consistent OS lists)
Caveat: platforms may differ
devVersion OS entries often omit platforms (defaults to [amd64]). Release versions may have explicit [amd64, arm64]. Switching to devVersion as the OS source could silently narrow platform support.
| Approach |
Trade-off |
| Use devVersion as-is |
Simple; may drop platforms |
| Merge platforms from latest for shared OSes |
Preserves platforms; more complex |
Image-level platforms field |
Eliminates drift; schema change |
Suggested path: use devVersion as-is, and have the release workflow surface OS differences in the PR body so reviewers can catch platform changes.
Related
Problem
bakery create versioncopies the OS list from thelatestversion. If the devVersion has a different OS config (added OS, dropped OS, changed platforms), the new version won't reflect it.Dependencies already come from image-level
dependencyConstraints. OS config should too — via the devVersion.Today
latestversionProposal
latestif no devVersions existCaveat:
platformsmay differdevVersion OS entries often omit
platforms(defaults to[amd64]). Release versions may have explicit[amd64, arm64]. Switching to devVersion as the OS source could silently narrow platform support.platformsfieldSuggested path: use devVersion as-is, and have the release workflow surface OS differences in the PR body so reviewers can catch platform changes.
Related