← Back to issue list

Add 'groups' statement to parts

View original Github issue

Metadata

Project
snapcraft
Number
#3823
Type
pull request
State
closed
Author
sergio-costas
Labels
—
Created
Updated
Closed

Current evaluation

Closed unmerged; part-group support moved to canonical/craft-parts#241, which also closed unmerged after naming discussions stalled.

Resolution: closed superseded

Reason: Maintainers requested that this generic dependency feature move to craft-parts, and the author relocated it to canonical/craft-parts#241. That PR also closed without merging, so the feature was superseded but never shipped.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This patch allows to add a 'groups' statement to each part, define one or more groups for each one, and use the groups for dependency management. This way, it is possible to add all the binaries and libraries parts to a "binaries" group, and make another part deppend on that group (just using the 'after' statement like with a part name). This is mainly useful in big snapcraft.yaml files with a lot of parts, like the gnome-XX-sdk ones. It is implemented as a preprocessor, like the one used in C, that modifies on-the-fly the configuration file. - [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `make lint`? - [x] Have you successfully run `pytest tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed unmerged; part-group support moved to canonical/craft-parts#241, which also closed unmerged after naming discussions stalled.
stealth/space-bunny-alpha — closed superseded PR #3823 added a 'groups' preprocessor to snapcraft parts; @sergiusens asked that it become a craft-parts feature, so it was closed and reopened as canonical/craft-parts#241, which was also closed unmerged over naming.
stealth/space-bunny-alpha — closed superseded Closed unmerged: maintainers said the generic groups-dependency feature belonged in craft-parts, not snapcraft; the author moved it to canonical/craft-parts#241 (also closed unmerged).
stealth/space-bunny-alpha — closed superseded Closed unmerged: after maintainers placed the generic dependency feature in craft-parts, the author moved its implementation to canonical/craft-parts#241.
qwen/qwen3.6-35b-a3b — — Closed and superseded by a new craft-parts pull request. Maintainers recommended the groups dependency feature belong in craft-parts rather than snapcraft, so the contributor migrated the implementation there.
qwen3.6-35b-a3b-mtp-q6 — — Proposed adding a groups statement to parts for dependency management. Maintainers recommended implementing it in craft-parts instead. The PR was closed and the feature was superseded by a new implementation in the canonical/craft-parts repository.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/craft-parts#241 (confidence 99%)

    The implementation was migrated there, but it closed unmerged after naming discussions stalled.

Related issues

Issue Project State Summary Similarity
#241 Add groups dependency support craft-parts closed Closed unmerged; the per-part dependency-groups patch was abandoned after discussion stalled over naming it groups, set, cluster, or unit.
74%