← Back to issue list

snapcraft 7 ignores icon path in snapcraft.yaml

View original Github issue

Metadata

Project
snapcraft
Number
#4936
Type
issue
State
closed
Author
mapero
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

No scores available.

Issue body

### Bug Description I have minimal example of a snapcraft.yaml ``` name: icon-snap base: core22 version: '0.1' summary: icon snap icon: icon/icon.png description: minimal grade: stable confinement: strict parts: my-part: plugin: nil ``` It seems like the icon is not copied when there is no "apps" section defined in the snapcraft.yaml in snapcraft 7. With snapcraft 6 or legacy the icon is copied into the snap: With snapcraft 6 / legacy ``` prime/ └── meta ├── gui │ └── icon.png └── snap.yaml 2 directories, 2 files ``` With snapcraft 7 ``` prime/ └── meta ├── gui └── snap.yaml 2 directories, 1 file ``` ### To Reproduce Build the following snap with snapcraft 7: ``` name: icon-snap base: core22 version: '0.1' summary: icon snap icon: icon/icon.png description: minimal grade: stable confinement: strict parts: my-part: plugin: nil ``` ### Environment Ubuntu 22.04 LTS ### snapcraft.yaml ```shell name: icon-snap base: core22 version: '0.1' summary: icon snap icon: icon/icon.png description: minimal grade: stable confinement: strict parts: my-part: plugin: nil ``` ### Relevant log output ```shell NA ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen/qwen3.6-35b-a3b Fixed via PR #4950. A regression causing snapcraft 7 to ignore the icon path without an apps section was resolved by correcting asset setup logic. The patch was merged and released to the 7.x/stable branch, excluding riscv64.
qwen/qwen3.6-35b-a3b Fixed via PR #4950 by correcting icon asset finalization logic. The snapcraft 7 regression ignoring icon paths without an apps section was resolved and backported to the 7.x/stable release channel, excluding riscv64.
qwen/qwen3.6-35b-a3b Fixed a regression where snapcraft 7 ignored the icon path without an apps section. Corrected asset setup execution order. Merged via PR #4950 and released to 7.x/stable, excluding riscv64.
qwen3.6-35b-a3b-mtp-q6 Fixed a Snapcraft 7 regression where the icon field was ignored without an apps section. Root cause identified in setup_assets.py. Patch merged via #4950 and released to 7.x/stable and 8.x, excluding riscv64.
qwen3.6-35b-a3b-mtp-q6 Fixed a regression where snapcraft 7 ignored the icon path in snapcraft.yaml without an apps section. Corrected asset initialization order in setup_assets.py. Merged via #4950 and released in snapcraft 7.5.6 and 8.x/stable.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#914 meta: icon is now dedeprecated snapcraft merged Merged. Updates snapcraft to prioritize the icon field in snapcraft.yaml over the setup directory. Resolves LP #1610268 with minimal code changes.
71%
#4950 fix: configure icon for snaps without apps snapcraft merged Merged fix addressing a regression that skipped icon configuration for snaps without apps. Approved by two reviewers, passed CI, and retargeted to the hotfix/7 branch for maintenance.
71%