Skip to content

0-byte files getting unpacked #8382

@jonathanmorley

Description

@jonathanmorley
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions