Skip to content

feat: support channel in CLI cut command - #315

Open
upils wants to merge 13 commits into
canonical:mainfrom
upils:track-in-cli
Open

feat: support channel in CLI cut command#315
upils wants to merge 13 commits into
canonical:mainfrom
upils:track-in-cli

Conversation

@upils

@upils upils commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator
  • Have you signed the CLA?

Allow selecting a channel when cutting slices from store packages (bins), via a pkg_slice@channel suffix on the command line.

Unlike debs, bins are published per channel, so users need to pick which one to fetch; a bare @3.0 is treated as a track and gets the default risk (stable), while @3.0/edge is used as given. When no suffix is provided, the channel is derived from the package's default-track in the slice definition, which stays a track — the risk remains implicit on the YAML side. The channel is kept strictly separate from slice identity: it flows only from the reference through setup.Select into Selection.Channels for the slicer to consume at fetch time, leaving dependency resolution, conflict checks and the manifest untouched. Conflicting channels for slices of the same package and channels on non-store packages are rejected, info/find commands reject the @ suffix since it is only meaningful when cutting, and channel validation is intentionally loose so longer forms such as track/risk/branch are not rejected today.

NOTE: This PR only prepares a Channels map in the Selection. Subsequent work to fetch bins from the store will consume it to get the right revision.

@upils
upils marked this pull request as ready for review July 27, 2026 07:48
@upils upils changed the title feat: support track in CLI cut command feat: support channel in CLI cut command Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant