← Back to issue list

Add the ability for plugins to mark their build step as clean or dirty

View original Github issue

Metadata

Project
craft-parts
Number
#1315
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Enhancement
Created
2025-09-17 15:07:57+00:00
Updated
2025-09-17 15:08:35+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Add a `Plugin` method something like this: ```python def build_is_dirty(self) -> bool | None: """Check whether the build is dirty. :returns: True if the plugin knows the build is dirty, False if it knows it's clean, or None if unknown. """ return None ``` ### Why it needs to get done We got a request to be able to do an update rather than a skip. Question for @cmatsuoka - Do we possibly make this something that returns the requested ActionType instead? Still defaults to None, but if the plugin knows what ActionType it wants for the build step it can request that.

Evaluation history

No evaluation history available.