← Back to issue list

Validator for the snap's icon appears to check the file before the snap is compiled

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1647343
Type
issue
State
open
Author
~michael-r-milton
Labels
Created
Updated
Closed

Current evaluation

Snapcraft icon validator checks file existence before compilation, contradicting docs that specify container-relative paths. No maintainer response in ~10 years; unlabelled and unassessed.

Suggested action: needs triage

Reason: The issue has zero comments, no labels, no assignee, and no maintainer interaction across 3556 days (~9.7 years), showing no sign of ever being categorised or prioritised. The reported bug (icon path validation running before the build stage, contradicting the metadata.md docs) is a genuine usability defect with a clear reproduction, but it cannot be confirmed whether the validation logic has since been refactored, so a maintainer needs to assess current relevance before any close or fix decision.

Impact: 40 Quick Win: 22.0 Staleness: 95 Complexity: 45 Confidence: 55 Support Request: 10

Issue body

Running `snapcraft` with the `icon` field set to something inside the container (e.g. `share/icons/hicolor/48x48/apps/myapp.png`) results in the following validation error: `Issues while validating snapcraft.yaml: Specified icon ./share/icons/hicolor/48x48/apps/myapp.png' does not exist` This would suggest that the icon needs to be the relative path of the icon outside the container. However the docs seem to indicate that the icon path should be a path inside the container: https://github.com/snapcore/snapcraft/blob/master/docs/metadata.md#package-icon In addition, running `snapcraft` with a filepath outside the container means it passes this initial validation check, but results in this error at the very end of the compilation stage: [Errno 2] No such file or directory: './myapp/resources/appname.png' -> '/home/myuser/snap/build/dir/prime/meta/gui/icon./myapp/resources/myapp'

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 22.0
Staleness: 95
Complexity: 45
Confidence: 55
Support Request: 10
needs triage Snapcraft icon validator checks file existence before compilation, contradicting docs that specify container-relative paths. No maintainer response in ~10 years; unlabelled and unassessed.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 90
Support Request: 10
close stale Validator incorrectly checks icon path before build environment is ready, causing false does not exist errors. Issue is 9.6 years old with no activity or maintainer response.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 45
Confidence: 92
Support Request: 15
close stale Validator incorrectly checks icon path before container build, causing false validation errors or later path resolution failures. Issue is inactive for over 9 years and likely outdated.
qwen3.6-35b-a3b-mtp-q6
Staleness: 100
Complexity: 40
Confidence: 90
Support Request: 10
close stale Reports a snapcraft validation error when the icon path points inside the build container, contradicting documentation. Issue is inactive for nearly 10 years with no maintainer response.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 40
Confidence: 85
Support Request: 10
close stale Snapcraft validates the icon path before container compilation, failing for container-relative paths and causing build errors for host paths. Remains open, unassigned, and inactive for over nine years.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.