fix: get assertions for aliased snaps
Metadata
Current evaluation
Merged PR #671 fixed declaration-assertion lookup for aliased snaps by using the snap name. It resolves #622 and is the 1.20 counterpart of #670.
Resolution: closed resolved
Reason: PR #671 was approved and merged, changing snapd declaration-assertion retrieval to use the snap name rather than its alias and explicitly fixing #622.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [ ] Have you followed the guidelines for contributing?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `tox`?
-----
Use the snap name when getting a [declaration assertion](https://ubuntu.com/core/docs/reference/assertions/snap-declaration) from snapd.
Same as #670, but for 1.20.
Unblocks https://github.com/canonical/snapcraft/issues/4683
Unblocks https://github.com/canonical/snapcraft/issues/4927
Unblocks https://github.com/canonical/charmcraft/issues/1770
Fixes #622
(CRAFT-3259)
(CRAFT-3351)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #671 fixed declaration-assertion lookup for aliased snaps by using the snap name. It resolves #622 and is the 1.20 counterpart of #670. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Fixed by merged PR using the snap name when retrieving declaration assertions from snapd, resolving #622 and unblocking related issues. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/craft-providers#622
(confidence 100%)
PR #671 explicitly states that it fixes this issue.
-
Related To:
canonical/craft-providers#670
(confidence 98%)
Companion fix for the same assertion lookup, noted by PR #671 as the non-1.20 version.
-
Likely Fixed By:
canonical/snapcraft#4683
(confidence 90%)
Identified in the PR body as unblocked by the assertion fix.
-
Likely Fixed By:
canonical/snapcraft#4927
(confidence 90%)
Identified in the PR body as unblocked by the assertion fix.
-
Likely Fixed By:
canonical/charmcraft#1770
(confidence 90%)
Identified in the PR body as unblocked by the assertion fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #670 fix: get assertions for aliased snaps | craft-providers | merged | Merged PR #670 fixed aliased-snap assertion retrieval by querying snapd with the canonical snap name; the fix is in commit 4fbc046 and resolves #622. | |
| #467 fix: inject aliased snaps into build environment | craft-application | merged | Merged PR #467 (77a3582b) injects snaps under their aliased names, fixing #411 and the Snapcraft #4683 reproducer. | |
| #413 Error parsing snap declaration assertion | fetch-service | closed | Fixed snap declaration assertion parsing in merged PR #414 (commit a47e7d2), allowing LXD snap declarations to be inspected. |