Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add groups dependency support #241

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sergio-costas
Copy link

@sergio-costas sergio-costas commented Jul 4, 2022

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.

This MR replaces canonical/snapcraft#3823

  • Have you signed the CLA?

@sergio-costas
Copy link
Author

@sergiusens Ok, moved into craft-parts. Now we need to think a good name for the parameter, instead of "groups".

@sergio-costas sergio-costas force-pushed the add_groups_support branch 2 times, most recently from 23d549e to 8ca02dc Compare July 4, 2022 18:50
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.

This MR replaces canonical/snapcraft#3823
@sergio-costas sergio-costas marked this pull request as ready for review July 4, 2022 19:10
@sergio-costas
Copy link
Author

@sergiusens This seems to work fine.

@sergio-costas
Copy link
Author

Alternate names for the option would be "set", "cluster" or "unit"...

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.

1 participant