cli: disable --target-arch for multipass/lxd
Metadata
Current evaluation
Merged changes disabling the --target-arch CLI flag for multipass and LXD. The flag was non-functional and misleading, so it was removed to prevent confusion while future architecture targeting is developed. Approved and passed CI.
Suggested action: —
No scores available.
Issue body
It currently doesn't have any effect, so rather than imply that
it is in fact working, disable it outright. We will be working
toward expanding "--build-on" to target other architectures without
cross-compilation that is broken in many cases (like this).
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged changes disabling the --target-arch CLI flag for multipass and LXD. The flag was non-functional and misleading, so it was removed to prevent confusion while future architecture targeting is developed. Approved and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. The --target-arch CLI flag was disabled for multipass and LXD backends as it currently has no effect. This prevents misleading users while future --build-on improvements are developed. Codecov reported a negligible coverage decrease. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes disabling the --target-arch flag for multipass and LXD builds, as it currently has no effect. This prevents misleading users while future --build-on improvements are developed. Codecov showed minimal impact. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3175 cli: restore --target-arch with warning for LXD and Multipass | snapcraft | merged | Restored the --target-arch CLI flag with a warning for LXD and Multipass. Merged after single reviewer approval with minimal changes across two files. | |
| #3172 cli: restore --target-arch with warning for LXD and Multipass | snapcraft | closed | Closed without merging due to unresolved review comments and missing CI checks. The change intended to restore the --target-arch flag for LXD and Multipass, converting an error to a warning. | |
| #1493 lxd: only pass target arch if specified explicitly | snapcraft | merged | Merged after two approvals and CI. It fixes container build architecture handling by only passing the target arch when explicitly specified, defaulting to the container's arch. PR #1498 context and description clarity were resolved before merge. |