Name snap files after the platform
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Superseded as a duplicate of #5399. Snap files were overwritten when building for multiple platforms with identical architectures. Resolution tracked in the referenced issue. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5588 fix!: use platform name in snap filename | snapcraft | merged | 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. |