← Back to issue list

Snapcraft should warn if it produces a snap that the store will reject

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1790004
Type
issue
State
open
Author
~ej-finneran
Labels
Created
Updated
Closed

Current evaluation

Feature request for snapcraft to warn during/after build about store-rejection issues like unusual file modes. No maintainer activity in 8 years. The snapcraft lint command (PRs #4095, #4115) now provides pre-upload checks.

Suggested action: close stale

Reason: The issue is dormant for ~8 years (2923 days, 0 comments, no labels) and the requested capability now exists: merged PRs canonical/snapcraft#4095 and #4115 added a 'snapcraft lint' command that inspects a built snap and reports warnings, and the current tree contains a snapcraft/linters/ package. Closing as implemented-elsewhere is appropriate, with a pointer to the lint command.

Impact: 30 Quick Win: 16.5 Staleness: 92 Complexity: 45 Confidence: 72 Support Request: 10

Issue body

It seems like there is a mismatch between the snapcraft tool and the store's review logic such that I can build a snap via snapcraft and have no indication there is a problem until I upload it to the store. Is there a way to normalize that logic so snapcraft can warn me before/during/after the build process with what problems I might need to address before attempting an upload? For example, I had a snap that was getting rejected with the following error: found errors in file output: unable to read or access files in 'squashfs-root' due to mode 'rwxrwsr-x', unable to read or access files in 'squashfs-root/meta' due to mode 'rwxrwsr-x', unusual mode 'rwxrwsr-x' for entry './meta/gui', unusual mode 'rwxrwsr-x' for entry './snap', unusual mode 'rwxr-sr-x' for entry './snap/.AppleDouble' security-snap-v2_squashfs_files It would be nice if snapcraft output a similar warning when the snap was built.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 16.5
Staleness: 92
Complexity: 45
Confidence: 72
Support Request: 10
close stale Feature request for snapcraft to warn during/after build about store-rejection issues like unusual file modes. No maintainer activity in 8 years. The snapcraft lint command (PRs #4095, #4115) now provides pre-upload checks.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 50
Confidence: 80
Support Request: 10
needs triage Feature request to add pre-upload validation warnings in snapcraft for store rejections like unusual file modes. Unlabelled, zero comments, and inactive for nearly 8 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 90
Support Request: 10
needs triage Feature request to add build-time warnings for potential store rejections. Currently untriaged with no maintainer interaction or activity for nearly eight years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 60
Confidence: 85
Support Request: 5
close stale Feature request to have snapcraft validate snap contents against store review rules during build, preventing late-stage upload rejections. Unaddressed for over 7 years with no maintainer interaction.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 70
Confidence: 85
Support Request: 10
close stale Feature request to add pre-upload validation warnings in snapcraft for store rejection rules. Untriaged, inactive for over 7.8 years with zero maintainer interaction.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#4095 (confidence 80%)

    Merged PR adding the 'snapcraft lint' CLI command, which is the mechanism for warning about snap problems before upload.

  • Likely Fixed By: canonical/snapcraft#4115 (confidence 75%)

    Merged PR implementing lint execution inside a snap instance with warning reporting, completing the pre-upload check workflow.

Related issues

Issue Project State Summary Similarity
#1919397 snapcraft doesn't run store checks locally, causing disappointment at upload time snapcraft (launchpad) open Snapcraft should run store validation checks locally (e.g. external symlinks) before upload. Issue is 5+ years old with no comments; a snapcraft lint command was later added, but no evidence it covers this specific check.
78%