← Back to issue list

warn if common-id wasn't parsed

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1814902
Type
issue
State
closed
Author
~apachelogger
Labels
19.04 19.04-blue
Created
Updated
Closed

Current evaluation

Fixed by canonical/snapcraft#2542, commit 8d7f16595: Snapcraft now warns when an app's common-id is absent from parsed AppStream metadata.

Resolution: closed resolved

Reason: Merged PR canonical/snapcraft#2542 resolved the issue in commit 8d7f16595 by validating common-id values against AppStream metadata and emitting a warning when no match is found.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Currently you can apparently put anything in the common-id entry of an app. It'd be grand if snapcraft would get angry about common-ids it doesn't think are right. For example to avoid typos: ``` apps: kbruch: command: kbruch common-id: org.ked.kbruch.desktop parts: kbruch: plugin: cmake source: parse-info: [usr/share/metainfo/org.kde.kbruch.appdata.xml] ``` Also for appstream specifically the id is encoded in the xml. If it gets changed there but one forgets to also update the snapcraft.yaml, things would silently break and it'd not at all be obvious why on the snapcraft side of things.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by canonical/snapcraft#2542, commit 8d7f16595: Snapcraft now warns when an app's common-id is absent from parsed AppStream metadata.
stealth/space-bunny-alpha — closed resolved Merged PR canonical/snapcraft#2542 added validation that warns when an app's common-id is not found in parsed AppStream metadata.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR canonical/snapcraft#2542 (commit 8d7f16595), adding validation that reports common IDs absent from AppStream metadata.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #2542, which validates an app’s common ID against parsed AppStream metadata and fails on a mismatch.
qwen/qwen3.6-35b-a3b — — Closed without resolution, likely abandoned. The feature to warn on mismatched common-id values was not implemented.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The feature request to warn on unparsed or mismatched common-ids was abandoned due to inactivity and no resolution.
qwen/qwen3.6-35b-a3b — — Closed without resolution or comments. The common-id validation warning request was likely abandoned or superseded by newer snapcraft features.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The request to warn on mismatched common-ids between snapcraft.yaml and parsed appstream data was abandoned.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#2542 (confidence 100%)

    The merged PR added common-id validation and is identified by commit 8d7f16595 as the resolving change.

Related issues

Issue Project State Summary Similarity
#2542 meta: Validate common ID against appstream metadata snapcraft merged Merged PR #2542 added validation that fails when an app's common-id is absent from AppStream metadata, preventing common-ID typos.
74%