-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
1.1a3/b2 does not detect installed packages as git #2730
Comments
@wakemaster39 can you try the fix in #2722, I think that should resolve this issue. |
@abn no, this isn't resolving the problem. I think it definitely could but there is one problem I am not sure how to best resolve. My test library is named
Adjusting line 40 to be |
@wakemaster39 i have pushed a new fix to that branch |
@abn looks good now :) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
This issues was found trying to validate the change set presented in #2327. In 1.0.9 where the PR was inititated, the
poetry/poetry/puzzle/solver.py
Line 87 in 4769f72
pkg.source_type
value was git, in the current master and develop, the pkg.source is returning None.Back tracking this issue, lead me to the InstalledRepository load method,
poetry/poetry/repositories/installed_repository.py
Lines 55 to 57 in 4769f72
I have a test test up where my only dependency is a test git repo, I added the following to try and diagnose the problem.
The output is:
My test repo is not returning any metadata distributions and during the next loop, the
dist-info
file is being detected and the package is being treated as a standard package and things try and get updated based on that.Forcibly adding the following if condition to see if they is the root cause resolves the issue and
pkg.source_type
is being properly populated.Unfortunately,
metadata.distributions
is out of my knowledge base and I am unsure what should be changed here as I looked to try and see if something further in the chain might be wrong as well but this following gate fails unless that first entry is passed in and set.poetry/poetry/repositories/installed_repository.py
Lines 100 to 105 in 4769f72
The text was updated successfully, but these errors were encountered: