Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seedwriter: check if the optionSnap channel is same as model assert #14071

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 3, 2024

  1. seedwriter: check if the optionSnap channel is same as model assert

    If we define `presence: optional` for an app snap in the model assertion, and the
    default channel is `24/stable` for example, then when we pass `--snap=SNAP=24/stable`
    to `snap prepare-image` with a model assertion that has model grade higher than
    `dangerous`, I will get an error `error: cannot override channels, add devmode snaps,
    local snaps, or extra snaps with a model of grade higher than dangerous`
    
    However, I am expecting that snapd should check whether the channel for option snap
    is same as the channel defined in model assertion, maybe snapd should only return
    error if channel is not the same and the model grade is higher than dangerous
    
    Signed-off-by: Aristo Chen <[email protected]>
    AristoChen committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    633b7a2 View commit details
    Browse the repository at this point in the history