← Back to issue list

Include/exclude patterns improvements

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1734400
Type
issue
State
open
Author
~lool
Labels
Created
Updated
Closed

Current evaluation

Feature request for snapcraft parts: include/exclude file patterns are processed with all excludes winning over all includes; reporter wants includes processed last or in yaml order to support more cases. No maintainer response, no labels, 0 comments, ~8.8 years old.

Suggested action: needs triage

Reason: The issue has no labels, no assignee, and zero comments from any maintainer, so it has never been triaged. It is a genuine feature/behavior request (not a support question) about how part file patterns are evaluated, and the underlying logic now lives in the shared craft-parts filesets implementation, so a maintainer should confirm whether the requested ordering semantics are still wanted before any change.

Impact: 40 Quick Win: 18.0 Staleness: 95 Complexity: 55 Confidence: 70 Support Request: 15

Issue body

Hi, (This was actually mentioned by a customer and I'm forwarding on their behalf.) When listing files to stage or prime for a part in snapcraft.yaml, the list of patterns seems to be sorte into an include list and an exclude list, and then processed in a way where all excludes win over all includes. Instead, it might be more useful to either always process all includes last, or to process includes/excludes in the order specified in the snapcraft.yaml. This would allow handling a broader variety of cases. Best, - Loïc

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 18.0
Staleness: 95
Complexity: 55
Confidence: 70
Support Request: 15
needs triage Feature request for snapcraft parts: include/exclude file patterns are processed with all excludes winning over all includes; reporter wants includes processed last or in yaml order to support more cases. No maintainer response, no labels, 0 comments, ~8.8 years old.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 30
Confidence: 85
Support Request: 5
needs triage Suggestion to reorder include/exclude pattern processing in snapcraft.yaml. Unlabelled, unassigned, and has received no maintainer comments in over 8 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 50
Confidence: 85
Support Request: 10
needs triage Feature request to change include/exclude pattern processing order in snapcraft.yaml. Suggests processing includes last or preserving specified order instead of excludes overriding includes. Unlabeled, zero comments, inactive for ~8.5 years, awaiting maintainer assessment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 55
Confidence: 90
Support Request: 25
close stale Suggests changing snapcraft.yaml include/exclude pattern processing order so includes can override excludes or follow specified order. Issue has been inactive for nearly 9 years with zero maintainer interaction.
qwen3.6-35b-moe-q4
Staleness: 98
Complexity: 30
Confidence: 85
Support Request: 10
close stale Feature request to change include/exclude pattern processing order in snapcraft.yaml. Over 8 years old, unlabelled, and has received no maintainer response or follow-up.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.