← 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
2022-06-21 18:23:06+00:00
Updated
2025-03-11 14:29:22+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

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

No evaluation history available.