Snapcraft's state tracking improvements

Sebastien Bacher seb128 at ubuntu.com
Wed Dec 14 14:10:58 UTC 2016


Hey Kyle,

Le 13/12/2016 à 22:57, Kyle Fazzari a écrit :
> and force you to say exactly what you wanted. For example, if you simply
> said `snapcraft clean part B` we error out, saying something like "Hey
> you're trying to clean part B, but part A depends on it. If you intend
> for both to be cleaned, please say so."

That sounds fine, you have an option that let the user overwrites the
warning though right (if cleaning only part B was really what was wanted)?

> *Option 2*: Automatically take care of everything. If you modify a part
> with dependencies, snapcraft will rebuild those dependencies as it sees
> fit without your needing to say so. Similarly, if you clean a part with
> dependencies, snapcraft will clean those dependencies as it sees fit
> without your needing to say so.
>
I think I would go for this one but only if you provide an option to
disable the smart behaviour and let the developers who know what they
are doing be in control. If you don't provide the option, or until you
do, I would prefer for the tools to error out asking me to be more
specific than wrong guessing what I might be trying to do (and e.g
cleaning out that webkit part that takes another day to rebuild)

Cheers,
Sebastien Bacher





More information about the Snapcraft mailing list