Skip to content

fix(Application): set the plugin group on load#998

Merged
lengau merged 6 commits intomainfrom
work/set-plugin-groups
Feb 20, 2026
Merged

fix(Application): set the plugin group on load#998
lengau merged 6 commits intomainfrom
work/set-plugin-groups

Conversation

@lengau
Copy link
Copy Markdown
Collaborator

@lengau lengau commented Jan 29, 2026

This sets the craft-parts plugin group on application load if possible. It also ignores errors in determining the plugin group, preventing a failure to run if there is no project file or the file is invalid.

This missing feature was discovered while implementing plugin groups in Rockcraft: canonical/rockcraft#1077 (comment)

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint && make test?
  • Have you added an entry to the changelog (docs/reference/changelog.rst)?

This sets the craft-parts plugin group on application load if possible.
It also ignores errors in determining the plugin group, preventing a
failure to run if there is no project file or the file is invalid.
Comment thread craft_application/application.py
@lengau lengau marked this pull request as ready for review February 5, 2026 19:09
@lengau lengau requested a review from a team as a code owner February 5, 2026 19:09
@lengau lengau changed the title feat(Application): set the plugin group on load fix(Application): set the plugin group on load Feb 5, 2026
Copy link
Copy Markdown
Member

@bepri bepri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, glad we were able to avoid per-base models.

@bepri bepri requested a review from a team February 5, 2026 21:48
@tigarmo
Copy link
Copy Markdown
Contributor

tigarmo commented Feb 20, 2026

@lengau can we land this?

@lengau lengau merged commit b1d70a5 into main Feb 20, 2026
15 checks passed
@lengau lengau deleted the work/set-plugin-groups branch February 20, 2026 17:54
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.

4 participants