← Back to issue list

fix(cli): restrict --project-dir to init and pack commands (#1565)

View original Github issue

Metadata

Project
charmcraft
Number
#1583
Type
pull request
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Closed as superseded: #1592 merged the equivalent --project-dir restriction in commit 06c485fc.

Resolution: closed superseded

Reason: The change did not land through #1583; canonical/charmcraft#1592 merged the equivalent fix as commit 06c485fc, cherry-picking #1565 to limit --project-dir to init and pack.

Evaluated by: mr-cal-bot

No scores available.

Issue body

(CRAFT-2434)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed as superseded: #1592 merged the equivalent --project-dir restriction in commit 06c485fc.
stealth/space-bunny-alpha — closed resolved Merged in canonical/charmcraft#1592 as 06c485fc, cherry-picking #1565 to restrict --project-dir to init and pack and remove it as a global option.
qwen/qwen3.6-35b-a3b — — Merged #1565 to restrict the --project-dir CLI flag to init and pack commands. The change modified 9 files, removing 599 lines and adding 26, limiting flag scope to relevant commands and resolving the CLI configuration issue.
qwen3.6-35b-a3b-mtp-q6 — — Merged #1565. The --project-dir CLI flag is now restricted to init and pack commands, resolving CRAFT-2434. This change prevents invalid flag usage across other commands and enforces proper argument scoping.

Update history

No update history recorded yet.

Related work

Related issues

Issue Project State Summary Similarity
#1592 fix(cli): restrict --project-dir to init and pack commands (#1565) charmcraft merged Merged into main as 06c485fc, cherry-picking #1565 to restrict --project-dir to init and pack commands.
93%
#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.
88%
#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).
73%