-
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
poetry-core 2.0.0 can no longer build when the sourcetree contains symlinks outside itself #9982
Comments
Are you certain that this has changed? there are several existing issues reporting the same behaviour either way it looks intended and correct |
Well, we've had these symlinks in place for about 6 months, and an unchanged CI pipeline building our package. The failures coincide with the release of the new version. If it is confirmed that this is intended and correct, we'll just have to find a way to get rid of these symlinks. As I said, I can certainly see why you wouldn't want to support this kind of thing. |
nevertheless I tried for myself with older versions of poetry / poetry-core - and indeed the same error is raised. So either there is something more subtle about what you are doing which we have not identified - or you have misunderstood what has changed |
It does looks like tools like Maybe it is worth considering the adding the ability to allow for includes to explicitly allow symlinks if a project really wants to do it. |
Supporting symlinks feels like quite the can of worms: and I continue to claim that this hasn't actually changed recently at all. (Though I don't know how to explain OP's report that something has changed!) If I am right and this has never been supported then I suppose this could become a feature request. But it sounds as though even the reporter doesn't think this is a particularly great idea, my gut would be to turn that down. If I am wrong and something used to work but now doesn't then it probably depends what that investigation shows: in that case maybe something should be reverted, or maybe it's better now anyway. |
Description
Since the release of poetry-core v2.0.0, twine can no longer build a poetry package whose source tree contains symlinks outside itself. Previously it could. Now it fails with errors like
Is this deliberate? I realise it is an edge case, and probably there are arguments for disallowing these symlinks.
(It doesn't seem to be possible for me to raise an issue against poetry-core itself.)
Workarounds
Poetry Installation Method
other
Operating System
Ubuntu 22.04
Poetry Version
poetry-core v2.0.0
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: