Name snap files after the platform
Metadata
Current evaluation
Closed as duplicate of #5399; merged PR #5588 (commit 57080e5c7) fixed Core24 filename collisions by including platform names in snap filenames.
Resolution: closed superseded
Reason: The report was marked duplicate of #5399, where the same collision was tracked. PR #5588 merged commit 57080e5c7, changing Core24 snap filenames to include platform names and prevent same-architecture artifacts from overwriting each other.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
If building for multiple platforms using the same architecture, generated artifacts are overwritten by the next platform.
### To Reproduce
Create a new project with `snapcraft init`. Edit the project file and declare two platforms with the same build-on/build-for entries, and run `snapcraft pack --verbose`.
### Environment
Snapcraft 8.8.1 running in managed mode.
### snapcraft.yaml
```yaml
platforms:
plat1:
build-on: amd64
build-for: amd64
plat2:
build-on: amd64
build-for: amd64
```
### Relevant log output
```shell
Launching managed ubuntu 24.04 instance...
Creating instance from base instance
Starting instance
...
Creating snap package...
Packed xx-test_0.1_amd64.snap
Launching managed ubuntu 24.04 instance...
Creating instance from base instance
Starting instance
...
Creating snap package...
Packed xx-test_0.1_amd64.snap
```
### Additional context
_No response_
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | Closed as duplicate of #5399; merged PR #5588 (commit 57080e5c7) fixed Core24 filename collisions by including platform names in snap filenames. | |
| stealth/space-bunny-alpha | — | closed superseded | Marked duplicate of #5399; underlying platform-filename overwrite was fixed by merged PR #5588, which uses platform names in Core24 snap filenames. | |
| stealth/space-bunny-alpha | — | closed superseded | Closed as a duplicate of #5399. That collision was fixed by merged PR #5588 (SNAPCRAFT-1022), which includes the platform name in Core24 snap filenames to prevent overwrites. | |
| stealth/space-bunny-alpha | — | closed superseded | Closed as a duplicate of canonical/snapcraft#5399. The same overwrite problem was later fixed by merged PR #5588, which names Core24 snap files after the platform. | |
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as a duplicate of #5399. Building multiple platforms with identical architectures caused snap artifacts to overwrite each other due to identical output filenames. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as a duplicate of #5399. Building multiple platforms with identical architectures overwrites snap artifacts due to identical filenames. Resolution is tracked in the referenced issue. |
Update history
No update history recorded yet.
Related work
-
Duplicate Of:
snapcraft#5399
(confidence 100%)
A maintainer explicitly identified #5399 as the duplicate tracking the platform-filename collision.
-
Likely Fixed By:
snapcraft#5588
(confidence 99%)
Merged PR #5588, commit 57080e5c7, added platform names to Core24 snap filenames.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5588 fix!: use platform name in snap filename | snapcraft | merged | Merged PR #5588 (57080e5c7) changed Core24 snap filenames to use platform names, preventing same-architecture platforms from overwriting each other; fixes #5399. | |
| #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. |