← Back to issue list

Warn if `--platform` is used for remote builds

View original Github issue

Metadata

Project
snapcraft
Number
#5387
Type
issue
State
open
Author
mr-cal
Labels
Status: Triaged Type: Enhancement
Created
2025-04-09 13:58:58+00:00
Updated
2025-04-09 13:59:15+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Snapcraft should error when `--platform` is used with remote-build and recommend using `--build-for`. ### Why it needs to get done `--platform` was dropped in Snapcraft 8.7.0 because it rarely worked as expected. The only deprecation notices were in the release notes and forum, not in Snapcraft itself. Based on feedback from @simondeziel

Evaluation history

No evaluation history available.