fix(commands/lifecycle): Pass the correct platform and build-for
Metadata
Current evaluation
Merged PR #687 as commit 5cf3d407, fixing lifecycle commands to pass the correct platform and build-for values to managed instances.
Resolution: closed resolved
Reason: PR #687 was merged into the main branch as commit 5cf3d407. It corrected platform filtering for managed instances, preventing false multiple-build matches.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Fixes this:
```yaml
platforms:
platform1:
build-on: [amd64]
build-for: [amd64]
platform2:
build-on: [amd64, arm64]
build-for: [arm64]
```
-> (error comes from the managed instance, not the host)
```
Multiple builds match the current platform: 'platform1' and 'platform2'.
Recommended resolution: Check the "--platform" and "--build-for" parameters.
```
- [x] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint && make test`?
- [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
---
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #687 as commit 5cf3d407, fixing lifecycle commands to pass the correct platform and build-for values to managed instances. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged into main as 5cf3d407, fixing lifecycle commands to forward the selected platform and build-for values and avoid false ambiguous-platform errors in managed instances. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #687 as 5cf3d407, fixing lifecycle commands to pass the correct platform and build-for and prevent false multiple-build matches in managed instances. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged fix correcting platform and build-for parameter passing in lifecycle commands, resolving a "Multiple builds match the current platform" error. Approved by two reviewers and passed CI. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #706 fix: improve the handling of platforms errors. | craft-application | merged | Merged PR #706 as commit b61fcd58, improving platform-error handling and fixing internal errors for build-on configurations in #690. |