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

0-byte files getting unpacked #8382

Closed
4 tasks done
jonathanmorley opened this issue Aug 29, 2023 · 4 comments
Closed
4 tasks done

0-byte files getting unpacked #8382

jonathanmorley opened this issue Aug 29, 2023 · 4 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@jonathanmorley
Copy link

jonathanmorley commented Aug 29, 2023

  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

When running poetry install against a project, it sometimes 'corrupts' the installation of packages by creating empty, 0-byte files, when they should be full of content.

I have managed to create a minimal-reproduction repository, but in testing, it seems extremely sensitive to alterations (pyproject dependencies, lockfile, etc).

It seems to happen independently of creating a local venv.

I have not observed this happening in other packages, but also havent checked.
pip install jira appears to work fine consistently, and poetry add jira in an empty project too, so I don't think its a problem with the package itself.

See this GitHub Action run for logs and behaviour (inside a docker container, natively, and with a non-reproducing job) https://github.com/cvent/poetry-empty-file-repro/actions/runs/6016097573/job/16319349035

@jonathanmorley jonathanmorley added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Aug 29, 2023
@dimbleby
Copy link
Contributor

looks like jira and jira-python collide. Nothing much poetry can do about that, please close.

@jonathanmorley
Copy link
Author

Would you mind expanding on how they collide? How could you tell? Could poetry be able to identify this collision and raise an error? As it stands, poetry appears to succeed installing them both together

@dimbleby
Copy link
Contributor

both packages expect to be used as import jira, both packages contain jira/__init__.py. At installation sometimes one wins and sometimes the other.

You can inspect the packages that you download eg from https://pypi.org/project/jira-python/#files to verify this.

No, poetry can't know this in advance.

Please close.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants