← Back to issue list

Add CLI option to select the target architecture

View original Github issue

Metadata

Project
craft-parts
Number
#975
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Feature request to add a CLI option (e.g. --target-arch) to python -m craft_parts for selecting the target architecture, useful for demonstrating cross-compilation bugs like #974. Triaged by a maintainer, synced to Jira (CRAFT-4734), not yet implemented.

Suggested action: keep open

Reason: The issue is labelled 'Status: Triaged' and 'Type: Enhancement' and was filed by a maintainer (lengau), with a Jira ticket (CRAFT-4734) created in Sep 2025, so it has been assessed and acknowledged. I verified craft_parts/main.py still has no target-arch option in _parse_arguments(), and LifecycleManager/ProjectInfo already carry target_arch (infos.py, lifecycle_manager.py), so the feature remains unimplemented and feasible. Last activity was ~12 months ago with no maintainer request for more info, so it should stay open rather than be closed as stale.

Impact: 40 Quick Win: 22.0 Staleness: 55 Complexity: 45 Confidence: 80 Support Request: 0

Issue body

### What needs to get done The CLI you get when running `python -m craft_parts` from the CLI should allow selecting a target architecture. ### Why it needs to get done This is useful when demonstrating minimal versions of cross-compiling bugs such as https://github.com/canonical/craft-parts/issues/974

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 22.0
Staleness: 55
Complexity: 45
Confidence: 80
Support Request: 0
keep open Feature request to add a CLI option (e.g. --target-arch) to python -m craft_parts for selecting the target architecture, useful for demonstrating cross-compilation bugs like #974. Triaged by a maintainer, synced to Jira (CRAFT-4734), not yet implemented.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 25
Confidence: 80
Support Request: 5
keep open Enhancement to add a CLI option for selecting target architecture in craft_parts. Triaged by a maintainer but inactive for over 300 days with no implementation progress or discussion.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 30
Confidence: 75
Support Request: 10
keep open Enhancement to add a CLI option for selecting target architecture. Triaged and labeled, but inactive for over 10 months with no implementation progress.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 20
Confidence: 85
Support Request: 0
keep open Add a CLI flag to craft_parts for specifying the target architecture, enabling cross-compiling bug demonstrations. The enhancement is triaged and awaiting implementation, with no recent activity for 288 days.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/craft-parts#974 (confidence 85%)

    Explicitly referenced in the issue body as the motivating cross-compilation bug (Python plugins install host-arch wheels) that a target-arch CLI option would help demonstrate.

Related issues

No related issues found above the similarity threshold.