← Back to issue list

Allow disabling common-directory removal code in tar source

View original Github issue

Metadata

Project
craft-parts
Number
#237
Type
issue
State
open
Author
zyga
Labels
—
Created
Updated
Closed
—

Current evaluation

Tar sources still unconditionally strip their detected common top-level directory. The opt-out request remains open, unlabeled, and awaiting maintainer triage; only an automated CRAFT-2968 Jira-sync comment exists.

Suggested action: needs triage

Reason: craft_parts/sources/tar_source.py still always detects and removes a common prefix, and no source-strip-path option or related fix is present, so the request remains valid. The issue has no maintainer response, labels, or assignee, and its only comment is an automated Jira-sync message for CRAFT-2968; the use case is clear, but the option's naming and semantics need maintainer triage.

Evaluated by: mr-cal-bot

Impact: 45 Quick Win: 21 Complexity: 32 Confidence: 91 Actionability: 68

Issue body

I have a snapcraft part using a tarball that has a specific top-level directory I want to preserve. Snapcraft strips this directory path during extraction, even before any customization hooks like override-build get to do anything. I think it would be nice to have a way to control this, perhaps `source-strip-path` which could be explicitly set (e.g. to an empty string) to disable the current auto-detection mechanism.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 45
Quick Win: 21
Complexity: 32
Confidence: 91
Actionability: 68
needs triage Tar sources still unconditionally strip their detected common top-level directory. The opt-out request remains open, unlabeled, and awaiting maintainer triage; only an automated CRAFT-2968 Jira-sync comment exists.
gemini-3.8-flash
Impact: 35
Quick Win: 18
Complexity: 30
Confidence: 85
Actionability: 75
needs triage Feature request to allow disabling automatic stripping of the top-level common directory when extracting tar sources, proposed via a setting like source-strip-path. Awaiting maintainer triage with an internal ticket created by Jira bot.
qwen/qwen3.8-27b
Impact: 25
Quick Win: 15
Staleness: 72
Complexity: 40
Confidence: 80
Support Request: 10
needs triage Feature request to add an option (e.g. source-strip-path) to control or disable the automatic stripping of the common top-level directory when extracting tar sources. No maintainer response; only a bot created an internal ticket. Stripping behavior still present in current code.
qwen/qwen3.6-35b-a3b
Staleness: 92
Complexity: 35
Confidence: 80
Support Request: 15
close stale Feature request to add a configuration option disabling automatic top-level directory stripping in snapcraft tar sources. Currently unaddressed and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 30
Confidence: 75
Support Request: 10
needs triage Feature request to add a configuration option to disable automatic top-level directory stripping in tarball extraction. Unlabelled and unassessed by maintainers after over 4 years.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.