-
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
Fix locking for nested dependencies (fixes #3115) #3125
Conversation
@abn does this make any sense to you? Sorry, have no idea of Poetry internals, but somehow the problem is that extended information about nested dependencies gets lost... |
I need to check when I'm on a machine. But iirc, you might end up with the wrong candidate. I'll get back to you soon. |
Thanks for the feedback! Yeah, this is exactly the type of help I need from someone who knows something about Poetry :) I though of using |
@zyv did not get to follow it through fully, but I do thnk the issue is in how the Also, feel free to ping me on the discord server. Happy to help walk through the issue. |
@abn I'd love to be of more help, but I'm really really useless after 12-hour workdays... would really appreciate if you guys could fix it properly or accept my band-aid. I could ask colleagues tomorrow to try to write a proper test based on our repro from #3115, so that it doesn't reoccur and submit a PR if that would be useful for you: [tool.poetry]
name = "foobar"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
[tool.poetry.dependencies]
python = "3.8.3"
sampleproject-mm = { git = "https://github.com/moneymeets/sampleproject.git", rev = "83068b995c2f94b0d51333b932b1a939084e9ef7" }
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api" |
I have reused a version of your fix for now, but I suspect the lack of nested metadata might end up being an issue for other edge cases as well eventually. |
Somehow GitHub didn't close this automatically with #3119, so closing this manually now. |
@zyv GitHub did nto close this because the change is not yet in |
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: moneymeets/python-poetry-buildpack#13, #3115
Currently the type of nested dependencies is lost, because they come from
pkg.requires
as an abstract class, and thereforerequirements.txt
exporter wrongly writes version out instead of URL for nested git dependencies (see #3115). This is my attempt to fix it...