Warn when unexpected things are in the snap dir
Metadata
Current evaluation
Snapcraft added a preflight check in merged PR #2250 (commit 0912e976c), rejecting unexpected files under snap/ and resolving LP #1791368.
Resolution: closed resolved
Reason: PR snapcore/snapcraft#2250 was merged as commit 0912e976c; its project sanity checks reject unexpected files in the snap directory and explicitly fix LP #1791368.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Snapcraft expects that the snap/ directory only contains its own things: plugins, hooks, metadata, etc. This is also the directory it writes state files. Putting other things in there has never been supported, but the snapcraft CLI has never warned about using it this in this way. It needs to start.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft added a preflight check in merged PR #2250 (commit 0912e976c), rejecting unexpected files under snap/ and resolving LP #1791368. | |
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft now warns about unsupported files in snap/ and recommends snap/local; merged in snapcore/snapcraft#2250 as 0912e976c. | |
| stealth/space-bunny-alpha | — | closed stale | Warning for unexpected snap/ contents was closed without implementation after prolonged inactivity; no resolving PR was recorded. | |
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The request to add CLI warnings for unsupported files in the snap directory was abandoned. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcore/snapcraft#2250
(confidence 100%)
Merged preflight validation for unexpected files in snap/, explicitly linked to the issue.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2250 project_loader: add preflight check | snapcraft | merged | Merged PR #2250 as 0912e976c, adding project sanity checks that reject unexpected files in the snap directory and fix LP #1791368. |