An empty snap directory ends up in the snap
Metadata
Current evaluation
Reported unintended inclusion of the snap directory in the build output. Closed without comments or resolution, indicating the report was abandoned.
Suggested action: —
No scores available.
Issue body
The snap directory is not filtered out of the snap. I think this is almost never the intended behaviour.
$ snapcraft init
$ snapcraft
$ ls prime/
meta snap
This is clearly wrong, the snap directory is empty. But I think this is also wrong:
$ snapcraft init
$ touch snap/file
$ snapcraft
$ ls prime/snap/
file
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Reported unintended inclusion of the snap directory in the build output. Closed without comments or resolution, indicating the report was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The report highlights snapcraft incorrectly including the snap directory in the packaged output. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. Snapcraft incorrectly included an empty snap directory in the build output. No fix or discussion was provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Report of an empty snap directory being included in builds was closed without comments or resolution. No fix was implemented, indicating the report was abandoned or marked stale. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution, likely abandoned. The report noted snapcraft incorrectly included an empty snap directory in the built artifact. No fix was implemented. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1772584 Having a "snap" directory with actual content causes build failures | snapcraft (launchpad) | closed | Closed without resolution or linked pull request. The proposed fix to allow alternative snap directories and update ignore rules was never implemented, indicating the issue was abandoned due to inactivity. | |
| #2044 snap install process creates empty dirs on Home folder | snapcraft | closed | Closed as not a Snapcraft issue. Maintainer redirected the report to snapd or individual maintainers, noting the behavior depends on specific snap configurations. Issue remains unresolved. | |
| #1791368 Warn when unexpected things are in the snap dir | snapcraft (launchpad) | closed | Closed without implementation. The request to warn on unexpected files in the snap/ directory was abandoned due to prolonged inactivity and no associated pull request. |