← Back to issue list

Snapcraft 7 silently ignores any files ending in *.snap when the source is a folder

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1990166
Type
issue
State
open
Author
~itrue
Labels
Created
Updated
Closed

Current evaluation

Snapcraft 7 silently ignores *.snap files in source folders. Valid bug with reproduction, never triaged, 1445 days old.

Suggested action: close stale

Reason: The issue is 1445 days old with zero maintainer interaction or labels, and was reported against snapcraft 7.1.3 (core22 base) which is no longer the current supported version. While the underlying behavior in craft-parts (snap_source.py line 41: pattern = r"\.snap$") still exists and the bug report is valid, the age and lack of any follow-up make it stale. The issue should be closed with a note that the behavior persists in craft-parts but the specific version context is outdated.

Impact: 35 Quick Win: 19.25 Staleness: 90 Complexity: 45 Confidence: 70 Support Request: 0

Issue body

Any files which end in *.snap are not copied to the part/x/src directory, as can be seen from this minimal example: snapcraft.yaml: name: my-snap-name base: core22 version: '0.1' summary: Single-line elevator pitch for your amazing snap description: Test grade: devel confinement: devmode parts: my-part: plugin: nil source: test override-build: | cp ${CRAFT_PART_SRC}/test.snap ${CRAFT_PART_INSTALL}/test.snap --- Snapcraft output: itrue@lxc-jammy:~/tmp/test-snap$ sudo snapcraft --verbose --destructive-mode Starting Snapcraft 7.1.3 Logging execution to '/root/.cache/snapcraft/log/snapcraft-20220919-153058.032639.log' Running on amd64 for amd64 Initializing parts lifecycle Executing parts lifecycle... Executing parts lifecycle: skip pull my-part (already ran) Executing action Executed: skip pull my-part (already ran) Executing parts lifecycle: skip overlay my-part (already ran) Executing action Executed: skip overlay my-part (already ran) Executing parts lifecycle: build my-part Executing action :: + cp /home/itrue/tmp/test-snap/parts/my-part/src/test.snap /home/itrue/tmp/test-snap/parts/my-part/install/test.snap :: cp: cannot stat '/home/itrue/tmp/test-snap/parts/my-part/src/test.snap': No such file or directory 'override-build' in part 'my-part' failed with code 1. Review the scriptlet and make sure it's correct. Full execution log: '/root/.cache/snapcraft/log/snapcraft-20220919-153058.032639.log' --- Source folder contents: itrue@lxc-jammy:~/tmp/test-snap$ ls test test.notasnap test.snap --- parts src folder contents: itrue@lxc-jammy:~/tmp/test-snap$ ls parts/my-part/src/ test.notasnap --- Please either copy all files in the source directory, or at least add a warning to say that these files are not being copied, rather than silently not doing it.

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 35
Quick Win: 19.25
Staleness: 90
Complexity: 45
Confidence: 70
Support Request: 0
close stale Snapcraft 7 silently ignores *.snap files in source folders. Valid bug with reproduction, never triaged, 1445 days old.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 70
Support Request: 5
close stale Snapcraft 7 silently ignores .snap files in source directories. Unlabeled, zero comments, and inactive for nearly four years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 30
Confidence: 85
Support Request: 0
close stale Snapcraft 7 silently ignores *.snap files in source folders. Issue is 1401 days old with no maintainer response, indicating it is stale and likely no longer relevant.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 15
Confidence: 75
Support Request: 0
close stale Snapcraft 7 silently excludes *.snap files from source directories during build. Unlabeled, unresponded to, and inactive for over three years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 20
Confidence: 85
Support Request: 0
close stale Snapcraft 7 silently skips copying *.snap files from source directories. Unlabeled, unresponded to, and inactive for over 3 years on an obsolete version.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.