meta: icon is now dedeprecated
Metadata
Current evaluation
Merged. Updates snapcraft to prioritize the icon field in snapcraft.yaml over the setup directory. Resolves LP #1610268 with minimal code changes.
Suggested action: —
No scores available.
Issue body
The icon entry in snapcraft.yaml is now (again) the preferred
method to have an icon in a snap, overriding the one in
the `setup` directory if necessary too.
LP: #1610268
Signed-off-by: Sergio Schvezov <sergio.schvezov@ubuntu.com>
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Updates snapcraft to prioritize the icon field in snapcraft.yaml over the setup directory. Resolves LP #1610268 with minimal code changes. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. The icon entry in snapcraft.yaml is restored as the preferred method for specifying snap icons, overriding setup directory icons. Resolves LP #1610268. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. The icon field in snapcraft.yaml is now the preferred method for specifying snap icons, overriding setup directory icons. Addresses LP #1610268. Integration tests were added to verify the behavior. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1578231 Your first snap: Use of icon in snapcraft.yaml is deprecated | snapcraft (launchpad) | closed | Documentation updated to replace the deprecated icon field in snapcraft.yaml with the setup/gui directory method. Tutorial corrected and verified. Issue closed. | |
| #1610268 icon and license are deprecated | snapcraft (launchpad) | closed | Closed as WONTFIX. The deprecation of custom icon and license paths in snapcraft.yaml aligns with upstream snapcraft requirements. Projects must now use snapcraft's mandated directory structure. No code changes or workarounds provided. | |
| #1561327 icon deprecation message doesn't explain the new way | snapcraft (launchpad) | closed | Requesting clearer migration guidance for the deprecated 'icon' field in snapcraft.yaml was closed without resolution. The warning message remains unchanged, likely superseded by newer snapcraft releases. | |
| #4936 snapcraft 7 ignores icon path in snapcraft.yaml | snapcraft | closed | Fixed a regression where snapcraft 7 ignored the icon path when the apps section was missing. Resolved via PR #4950 by correcting asset setup order. Released in snapcraft 7.5.6 and version 8. |