← Back to issue list

Hidden files are not staged after "dump"

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1669854
Type
issue
State
open
Author
~joeborg
Labels
isv sources
Created
Updated
Closed
—

Current evaluation

Hidden top-level files from dump are omitted by default during stage and prime; current fileset behavior and documentation treat this as intentional, with an explicit workaround.

Suggested action: close not a bug

Reason: The reported behavior is intentional: the current craft-parts fileset implementation excludes hidden top-level paths from default wildcards, and its documentation recommends listing hidden paths explicitly or using both "*" and ".*". The comment from elopio confirms the practical Rocket.Chat workaround of adding .node_version.txt to the stage fileset.

Evaluated by: mr-cal-bot

Impact: 35 Quick Win: 23 Complexity: 30 Confidence: 97 Actionability: 92

Issue body

In this case, I am downloading and unpacking a tar.gz with the "dump" plugin. If I check the result of this in the ./parts/mypart/install directory, I can see all the files from the tar; including hidden files and directories. However, once the part is staged, these hidden files and directories seem to be filtered out. I can hack them into the stage directory using "organize" to remove the prefixed "." but this can obviously cause issues with libraries looking for the original name. This is also lost from stage -> prime, if I manually copy the hidden files / directories into stage and then run `snapcraft prime`. However, it does work if I copy them into prime and run `snapcraft snap`. Not sure if this is intentional or if it's a bug? Thanks, Joe

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 35
Quick Win: 23
Complexity: 30
Confidence: 97
Actionability: 92
close not a bug Hidden top-level files from dump are omitted by default during stage and prime; current fileset behavior and documentation treat this as intentional, with an explicit workaround.
stealth/space-bunny-alpha
Impact: 48
Quick Win: 20
Complexity: 46
Confidence: 86
Actionability: 79
keep open Dump-produced hidden files and directories are omitted from stage and prime; a later comment confirms a real Rocket.Chat impact, but no fix or resolution is recorded.
qwen/qwen3.6-35b-a3b
Impact: 15
Quick Win: 13
Complexity: 5
Confidence: 95
Actionability: 90
close not a bug Hidden files from dump plugin are filtered during staging. This is documented behavior in craft-parts — hidden files require explicit inclusion via stage fileset patterns like ".*".
qwen/qwen3.8-27b
Impact: 45
Quick Win: 20
Staleness: 95
Complexity: 55
Confidence: 55
Support Request: 15
close stale Reports that hidden files/dirs from a tar.gz unpacked via the dump plugin are dropped during part staging and again from stage to prime, though they appear in the install dir. 9.5 years old, zero comments, no maintainer interaction.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 45
Confidence: 85
Support Request: 10
close stale Hidden files are filtered out during staging when using the dump plugin. The report is nearly 9 years old with no maintainer engagement or updates.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 85
Support Request: 10
close stale Hidden files from a tar.gz unpacked via the dump plugin are filtered out during staging. The report has been inactive for over 9 years with no maintainer response or updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 92
Complexity: 35
Confidence: 80
Support Request: 10
needs triage Hidden files from dump plugin tar.gz are filtered out during staging. Unanswered for over 9 years with no maintainer interaction or labels.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.