Skip to content

Enable application overriding lifecycle action execution #819

@upils

Description

@upils

What needs to get done

Extract execution of actions of the lifecycle to a specific method of the LifecycleService to enable applications overriding it.
Applications are expected to only raise craft_cli.CraftError s in this overriding method.
Let CraftError errors pass through in run.

See prototype https://github.com/canonical/craft-application/tree/work/catch-run-exceptions

Why it needs to get done

Once canonical/craft-parts#1164 is merged, EnvironmentChangedError raised by craft-parts is destined to be caught and handled by the application.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions