Prefer `--use-lxd` over `CRAFT_BUILD_ENVIRONMENT`
Metadata
Current evaluation
Ensure --use-lxd overrides CRAFT_BUILD_ENVIRONMENT to force LXD builds. Issue is open, unassigned, and awaiting implementation. Last activity over a year ago.
Suggested action: close stale
Reason: The issue is over two years old with no maintainer activity for more than a year. Given the prolonged inactivity and likely project evolution or architectural changes since then, it is considered stale and no longer applicable to the current codebase.
Staleness:
95
Complexity:
20
Confidence:
75
Support Request:
0
Issue body
### What needs to get done
[This function](https://github.com/canonical/craft-application/blob/a39b3cd6a3ee43eaf505988c57cc4d7618029c19/craft_application/commands/lifecycle.py#L93) needs to check if `--use-lxd` was provided.
### Why it needs to get done
The following commands will run locally, rather than in a container:
```shell
CRAFT_BUILD_ENVIRONMENT=host testcraft pack --use-lxd
# for core24 snaps
SNAPCRAFT_BUILD_ENVIRONMENT=host snapcraft pack --use-lxd
```
This is wrong because command line arguments should take priority over environment variables
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| 2026-06-17 08:32:49.826144+00:00 | qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
20
Confidence:
75
Support Request:
0
|
close stale | Ensure --use-lxd overrides CRAFT_BUILD_ENVIRONMENT to force LXD builds. Issue is open, unassigned, and awaiting implementation. Last activity over a year ago. |
| 2026-06-17 08:30:36.912649+00:00 | pending | — | — | — |