← Back to issue list

Improve output when different parts list the same file

View original Github issue

Metadata

Project
rockcraft
Number
#190
Type
issue
State
open
Author
arturo-seijas
Labels
Created
Updated
Closed

Current evaluation

Request to improve error output when parts list the same file with different contents/permissions. The PartFilesConflict error in craft-parts already includes part names and conflicting file list, but does not distinguish between permissions vs contents clashes. No maintainer response; issue is 1299 days old with 0 comments.

Suggested action: keep open

Reason: The PartFilesConflict error in craft-parts (errors.py:454) already includes part names and a list of conflicting files, addressing most of the request. However, it still reports 'different contents or permissions' without distinguishing which type of clash occurred, so the issue is not fully resolved. No maintainer has triaged or responded, but the feature is partially implemented upstream in craft-parts, making it a valid but low-priority enhancement.

Impact: 40 Quick Win: 28.0 Staleness: 75 Complexity: 30 Confidence: 70 Support Request: 0

Issue body

Hi! I've just came across this error and I though it would be useful to the user to have a more detailed output listing the affected parts, the affected files and whether it's a permissions or contents clash. ``` Failed to stage: parts list the same file with different contents or permissions. craft-providers error: Failed to execute pack in instance. ``` Thank you

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 28.0
Staleness: 75
Complexity: 30
Confidence: 70
Support Request: 0
keep open Request to improve error output when parts list the same file with different contents/permissions. The PartFilesConflict error in craft-parts already includes part names and conflicting file list, but does not distinguish between permissions vs contents clashes. No maintainer response; issue is 1299 days old with 0 comments.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 20
Confidence: 85
Support Request: 10
needs triage Feature request to improve error output when parts list the same file, showing affected parts, files, and clash type. Unlabelled and unassessed by maintainers.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 15
Confidence: 80
Support Request: 5
needs triage Feature request to enhance error messaging for file conflicts between parts, showing affected parts, files, and clash type. Unlabelled and inactive for over three years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 20
Confidence: 80
Support Request: 20
needs triage Enhances error messaging for file clashes between build parts by listing affected parts, files, and clash type. Open with zero comments and over a year of inactivity, awaiting triage and assignment.

Update history

No update history recorded yet.

Related work

  • Related To: craft-parts#305 (confidence 60%)

    Commit b93c135d 'executor: take permissions into account for collisions' added permissions to collision detection, which is the underlying mechanism this issue asks to surface in the error message.

Related issues

No related issues found above the similarity threshold.