← 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 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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Superseded after maintainers recommended implementing the groups feature in craft-parts instead of snapcraft. The author moved the implementation to canonical/craft-parts#241 and closed this pull request.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#241 Add groups dependency support craft-parts open Adds 'groups' to parts for dependency management via 'after'. Author moved it from snapcraft to craft-parts in July 2022, asked maintainer for naming feedback, then went silent. No reviewer engagement in 23 months. Codebase has since undergone major changes (pydantic 2, overlays, partitions).
79%