Skip to content
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

Support --only and --without for poetry lock #2

Open
WillDaSilva opened this issue Feb 13, 2023 · 0 comments
Open

Support --only and --without for poetry lock #2

WillDaSilva opened this issue Feb 13, 2023 · 0 comments

Comments

@WillDaSilva
Copy link

Thank you for making this plugin. It work as described, and is useful. Unfortunately I do not believe I can use this because the following dependency structure results in an error when running poetry lock:

[tool.poetry.group.prod.dependencies]
foo = {git = "https://github.com/bar/foo", subdirectory = "src/libs/foo"}

[tool.poetry.group.dev.dependencies]
foo = {path = "../../libs/foo", develop = true}

Error:

Because poet-test-project depends on both foo (1.2.3) @ git+https://github.com/bar/foo#subdirectory=src/libs/foo and foo (1.2.3) @ file:///home/will/workshop/poet-test-project/src/libs/foo, version solving failed.

Is there some way to use the sort of dependency structure proposed by this plugin with poetry lock? I think it might make sense to support the --only and --without CLI options for poetry lock so that the lockfile can ignore one of the two versions of the dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant