fix!: use platform name in snap filename
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a fix that changes Core24 snap output filenames to use the platform name instead of the build-for architecture. This prevents multiple snaps with identical architectures from overwriting each other, resolving issue #5399. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5538 Name snap files after the platform | snapcraft | closed | Superseded as a duplicate of #5399. Building multiple platforms with identical architectures overwrote snap artifacts due to identical output filenames. Resolution is tracked in the referenced issue. | |
| #767 build(snap): update snap to core24 | rockcraft | merged | Merged the snap build update to core24, resolving issue #750. Approved by two reviewers, the change modified seven files. Changelog updates are handled separately during pre-release. | |
| #2173 fix(snap): fix build on 32-bit platforms | charmcraft | merged | Merged a one-line fix resolving snap build failures on 32-bit armhf platforms. Approved by three reviewers and validated via a successful Launchpad remote build. | |
| #2412 feat(snap): migrate the snap to core24 | charmcraft | merged | Merged after two approvals. Migrates snap packaging to core24 across four files. Known test failures were deemed non-blocking. CI passed on most platforms despite Ubuntu 20.04 and 22.04 failures. | |
| #5790 fix: resolve core20 architecture shorthand multi-snap naming issue | snapcraft | closed | Rejected by maintainers due to unintended behavioral changes. The contributor will step back while the team implements an internal fix for the core20 architecture shorthand multi-snap naming issue. |