← 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

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.

Suggested action: needs triage

Reason: The issue has no labels, no assignee, and its only comment is the syncronize-issues-to-jira bot (2024-05-17) creating internal ticket CRAFT-2968 — no maintainer has acknowledged, categorised, or prioritised it. The requested behaviour is still unimplemented: tar_source.py's filter_members() still unconditionally strips the common prefix, and no commit or related issue implements a source-strip-path option, so it remains a valid, actionable feature request awaiting triage.

Impact: 25 Quick Win: 15.0 Staleness: 72 Complexity: 40 Confidence: 80 Support Request: 10

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
qwen/qwen3.8-27b
Impact: 25
Quick Win: 15.0
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 30
Confidence: 80
Support Request: 10
needs triage Request to disable automatic top-directory stripping in tarball extraction via a source-strip-path option. Open. Internal Jira ticket CRAFT-2968 created. Last activity 465 days ago.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.