fix!: use platform name in snap filename
Metadata
Current evaluation
Merged PR #5588 (57080e5c7) changed Core24 snap filenames to use platform names, preventing same-architecture platforms from overwriting each other; fixes #5399.
Resolution: closed resolved
Reason: PR #5588 merged as commit 57080e5c7. It replaced the build-for architecture with the platform name in Core24 output filenames, preventing collisions and fixing snapcraft#5399 (SNAPCRAFT-1022).
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint`?
- [x] Have you successfully run `make test`?
---
Core24 snaps now use the platform name instead of the build-for architecture in the output snap file.
This fixes a bug where multiple snaps would have the same name and overwrite each other. For example:
```yaml
name: hello
version: 1.0
platforms:
rpi:
build-on: [arm64]
build-for: [arm64]
rpi-debug:
build-on: [arm64]
build-for: [arm64]
```
#### before
2 snaps would be built, but the first snap would be overwritten by the second snap:
- `hello_1.0_arm64.snap`
#### after
Two separate snaps are built:
- `hello_1.0_rpi.snap`
- `hello_1.0_rpi-debug.snap`
Fixes #5399
(SNAPCRAFT-1022)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #5588 (57080e5c7) changed Core24 snap filenames to use platform names, preventing same-architecture platforms from overwriting each other; fixes #5399. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #5588 (commit 57080e5c7) changed Core24 snap filenames to use platform names, preventing same-architecture platforms from overwriting each other and fixing #5399. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #5588: Core24 snap filenames now use the platform name instead of build-for architecture, preventing overwrites and fixing #5399 (SNAPCRAFT-1022). | |
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix updating Core24 snap filenames to use the platform name instead of the build-for architecture. This resolves a file collision bug where identical architectures caused overwrites. Approved, passed CI, and closes issue #5399. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a squashed fix changing snap filenames to use the platform name instead of the build-for architecture. This prevents multiple snaps targeting the same architecture from overwriting each other, resolving issue #5399. |
Update history
No update history recorded yet.
Related work
-
Caused By:
snapcraft#5399
(confidence 100%)
Reported same-architecture snap filename collisions that PR #5588 fixed.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5399 Use the platform in snap names to prevent overwrites | snapcraft | closed | Fixed by merged PR canonical/snapcraft#5588 (commit 57080e5c7), using platform names in Core24 snap filenames to prevent same-architecture artifacts from overwriting each other. | |
| #5538 Name snap files after the platform | snapcraft | closed | Closed as duplicate of #5399; merged PR #5588 (commit 57080e5c7) fixed Core24 filename collisions by including platform names in snap filenames. | |
| #5790 fix: resolve core20 architecture shorthand multi-snap naming issue | snapcraft | closed | External PR to fix core20 shorthand architecture producing multi-arch snaps was declined by maintainer (bepri) as better fixed internally; superseded by merged PR #5818 (commit f0a732be3) adding a warning, shipped in 8.13.0. |