fix(cli): restrict --project-dir to init and pack commands (#1565)
Metadata
Current evaluation
Merged into main as 06c485fc, cherry-picking #1565 to restrict --project-dir to init and pack commands.
Resolution: closed resolved
Reason: PR #1592 was merged as commit 06c485fc, bringing the #1565 fix to main and limiting --project-dir to the init and pack commands.
Evaluated by: mr-cal-bot
No scores available.
Issue body
(CRAFT-2434)
This is a cherry-pick of #1565 for the main branch.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged into main as 06c485fc, cherry-picking #1565 to restrict --project-dir to init and pack commands. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged into main as 06c485fc, cherry-picking #1565 to restrict --project-dir to init and pack commands. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged to main as a cherry-pick, restricting the --project-dir CLI flag to init and pack commands. Approved by two reviewers, the update removes 579 lines across eight files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a cherry-pick of #1565 to main, restricting the CLI --project-dir flag to init and pack commands. Resolved as a bug fix. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#1565
(confidence 100%)
Original merged PR whose fix was cherry-picked into main by #1592.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1583 fix(cli): restrict --project-dir to init and pack commands (#1565) | charmcraft | closed | Closed as superseded: #1592 merged the equivalent --project-dir restriction in commit 06c485fc. | |
| #1565 fix(cli): --project-dir should only be available for init and pack commands | charmcraft | merged | Merged #1565 restricted --project-dir to init and pack; the fix was cherry-picked into main by #1592 as 06c485fc. | |
| #253 fix(application): Only allow --project-dir for init and pack | craft-application | closed | Closed unmerged after changes were requested, with two unresolved comments and no activity for 946 days; an equivalent fix later merged in charmcraft#1565 via #1592 (06c485fc). | |
| #229 fix: make project directory loading less strict. | craft-application | merged | Merged PR #229 in commit 341e378d: project-directory loading now permits missing directories and rejects only incompatible existing paths, supporting commands such as init. |