← Back to issue list

Metadata links are ignored in core22 snaps

View original Github issue

Metadata

Project
snapcraft
Number
#4238
Type
issue
State
closed
Author
maxiberta
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by PR #4275, merged into hotfix/7.5 as de56fe6a1; Snapcraft again writes top-level metadata links into generated snap.yaml for core22 snaps.

Resolution: closed resolved

Reason: PR #4275 restored serialization of project metadata links and fixed #4238. The change was merged into hotfix/7.5 in commit de56fe6a1.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description Building [this sample `core20` snapcraft.yaml](https://github.com/snapcore/snapcraft/blob/main/tests/spread/general/metadata-links/snapcraft.yaml) from general spread tests, fields such as `issues`, `donation`, `contact`, `source-code`, and `website` are translated to the result's `snap.yaml` under the `links` field. But if I just switch to `base: core22` these links are nowhere to be found in the built snap. ### To Reproduce - Build this snap: https://github.com/snapcore/snapcraft/blob/main/tests/spread/general/metadata-links/snapcraft.yaml - Check `meta/snap.yaml` in the resulting snap and look for `links`. - Edit `snapcraft.yaml` and set `base: core22`. - Rebuild. - Look for any links in `meta/snap.yaml`. ### Environment ```sh $ snap version snap 2.59.5 snapd 2.59.5 series 16 ubuntu 23.04 kernel 6.2.0-23-generic ``` ### snapcraft.yaml ```shell name: metadata-links summary: test metadata links description: | Verify that top level metadata links in snapcraft.yaml are created at a top level links entry in snap.yaml. version: "1.0" grade: stable confinement: strict base: core22 issues: - https://github.com/acme/project/issues - https://bugs.launchpad.net/project/filebug donation: - https://paypal.com - https://cafecito.app/ - https://ko-fi.com/ contact: - mailto:project@acme.com - team@acme.com source-code: https://github.com/acme/project.git website: https://project.acme.org parts: nil: plugin: nil ``` ### Relevant log output ```shell $ sudo mount -t squashfs -o ro metadata-links_1.0_amd64-core20.snap tmp $ grep links: tmp/meta/snap.yaml links: $ sudo umount tmp $ sudo mount -t squashfs -o ro metadata-links_1.0_amd64-core22.snap tmp $ grep links: tmp/meta/snap.yaml $ ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by PR #4275, merged into hotfix/7.5 as de56fe6a1; Snapcraft again writes top-level metadata links into generated snap.yaml for core22 snaps.
stealth/space-bunny-alpha — closed resolved Fixed core22 metadata-link omission: PR #4275 restored writing top-level project links into snap.yaml; merged as de56fe6a1.
stealth/space-bunny-alpha — closed resolved Fixed by PR #4275, merged as de56fe6a1, restoring top-level metadata links in snap.yaml for core22 builds.
stealth/space-bunny-alpha — closed resolved Restored top-level metadata links in generated snap.yaml for core22 snaps via merged PR #4275 (commit de56fe6a1).
stealth/space-bunny-alpha — closed resolved Fixed by PR #4275, merged in commit de56fe6a1, which restored writing top-level metadata links into snap.yaml.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Metadata links in snapcraft.yaml remain ignored for core22 bases, unlike core20 builds where they correctly populate snap.yaml.
qwen/qwen3.6-35b-a3b — — Closed without resolution. Metadata links in snapcraft.yaml were ignored in core22 snaps, failing to populate the links field in snap.yaml, unlike core20 builds.
qwen/qwen3.6-35b-a3b — — Closed without resolution; metadata links remain ignored in core22 snaps. No comments or fixes were provided, indicating the report was abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution or comments, indicating the issue was abandoned or superseded. The core22 metadata link bug remains unfixed.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#4275 (confidence 100%)

    Merged fix restoring metadata links in generated snap.yaml.

Related issues

Issue Project State Summary Similarity
#4275 meta: write out metadata links snapcraft merged Merged into hotfix/7.5 as de56fe6a1, restoring metadata links in generated snap.yaml and fixing #4238.
81%
#3552 meta: support for metadata links (CRAFT-370) snapcraft merged Merged CRAFT-370 support for metadata links in snap.yaml via #3552, merge commit 6d6a40749.
74%