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

[1.6.0] Issue with git sub-dependency resolution #245

Closed
bmika1 opened this issue Nov 5, 2023 · 1 comment
Closed

[1.6.0] Issue with git sub-dependency resolution #245

bmika1 opened this issue Nov 5, 2023 · 1 comment

Comments

@bmika1
Copy link

bmika1 commented Nov 5, 2023

Hi,

I have a setup where both my library and its dependency both require the same Poetry dependency via a git repository.
Following the 1.6.0 update, the main dependency is resolved to the latest commit as expected. However, the sub-dependency does not resolve in the same manner, leading to an inconsistency that generates the error described below:

#14 26.15 ERROR: Cannot install -r /app/requirements.txt (line 9) and certain-library 0.4.2 (from git+https://github.com/***/certain-library.git@f44ef1ae7046c22850332fde09a30197401fe50a) because these package versions have conflicting dependencies.
#14 26.15 
#14 26.15 The conflict is caused by:
#14 26.15     The user requested certain-library 0.4.2 (from git+https://github.com/***/certain-library.git@f44ef1ae7046c22850332fde09a30197401fe50a)
#14 26.15     another-library 0.1.7 depends on certain-library 0.4.2 (from git+https://github.com/***/certain-library.git@main)

Would it be possible to introduce an option in poetry-plugin-export's resolution mechanism that prevents the automatic resolution of commit hashes for git dependencies, thereby allowing users to maintain the pre-1.6.0 behavior when needed?

Looking forward to any suggestions or guidance on this matter.

@dimbleby
Copy link
Contributor

dimbleby commented Nov 5, 2023

duplicate #244 - same solution presumably - please close

@bmika1 bmika1 closed this as completed Nov 6, 2023
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

2 participants