Skip to content

Use devVersion OS config when creating new versions #412

Description

@bschwedler

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cvp:0Necessary projects we are undertaking that don’t directly deliver value to the customerdockerRelated to container images we producetdp:2The team notices.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions