-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 3220 add develop flag for add command #3250
Issue 3220 add develop flag for add command #3250
Conversation
poetry/console/commands/add.py
Outdated
@@ -50,6 +50,7 @@ class AddCommand(InstallerCommand, InitCommand): | |||
"Output the operations but do not execute anything (implicitly enables --verbose).", | |||
), | |||
option("lock", None, "Do not perform operations (only update the lockfile)."), | |||
option("develop", None, "Add as dependency in editable mode."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use --editable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation should also mention that this is only supported for VCS
and path
dependnecies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abn My bad, thought documentation for cli options were automatically generated
ec924e5
to
87583c6
Compare
44ad650
to
244518b
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
Resolves: #3220
Simply adding the
develop
attribute causes the following issue however - only directory and vcs dependencies support thedevelop
attribute.If we add
develop = true
without checking thesource_type
first then the follow unintuitive error message is raised for dependencies that do not support itIt would be better to raise an explicit error such as
The develop flag is not supported for dependencies of type <source_type>
Unfortunately I don't see an elegant way of doing this without changing how
poetry-core
dependencies handle thedevelop
parameter.