project: use correct host arch when target arch is set
Metadata
Current evaluation
Merged a fix introducing a dedicated property to store the host deb architecture. This prevents incorrect architecture assignment when --target-arch is specified, resolving singleton conversion issues.
Suggested action: —
No scores available.
Issue body
The deb arch in project configuration is set to the target architecture
when --target-arch is used. Create a new project property holding the
host deb architecture instead of obtaining it from freshly instantiated
project options to avoid problems later when converting `ProjectOptions`
to a singleton.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint`?
- [ ] Have you successfully run `pytest tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a fix introducing a dedicated property to store the host deb architecture. This prevents incorrect architecture assignment when --target-arch is specified, resolving singleton conversion issues. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into hotfix/7.0.11. Adds a dedicated project property to correctly track host deb architecture when --target-arch is set, preventing singleton conversion conflicts and resolving architecture detection bugs. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix for incorrect host architecture detection when --target-arch is set. Introduced a dedicated project property for the host deb architecture to prevent singleton conversion conflicts. Merged into hotfix/7.0.11. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1204 target-arch: decouple target arch from deb, and use a separate field … | snapcraft | merged | Merged into master. Introduces a target field to decouple target from deb architecture, providing arch aliases for the kernel plugin. Approved, passed CI, and merged with 70 added lines across two files. | |
| #3418 project: always set target arch even if not cross compiling | snapcraft | merged | Merged a change that always sets the target architecture, even during native builds. This avoids special-casing None in apt_cache and ensures SNAPCRAFT_TARGET_ARCH is consistently defined. Approved by one reviewer and passed CI checks. |