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

fix: revert #7916 #7995

Merged
merged 1 commit into from
May 24, 2023
Merged

Conversation

ralbertazzi
Copy link
Contributor

Pull Request Check List

Resolves: #7961

Reverting #7916 (funny how it's the same issue numbers reverted) as the cached file from cachecontrol contains the entire HTTP response, not just its content. Terribly sorry for that, I don't know how this slipped when debugging.

There's still probably some optimizations we could do but we should prioritize making Poetry correct again. The PR reverts the old unwanted behaviours:

  • An unwanted file copy operation

  • An unwanted slow file copy operation, as we perform it with a relative small chunk size

  • An unwanted "Downloading " log when in reality we are not

  • Added tests for changed code.

  • Updated documentation for changed code.

@ralbertazzi
Copy link
Contributor Author

ralbertazzi commented May 24, 2023

As far as I understand, I should be able to re-achieve the same behaviour by using https://cacheyou.readthedocs.io/en/latest/storage.html#separatebodyfilecache, as The body of the request is stored in a separate file than metadata. I'll give it a try once #7997 is merged. Clearly not a blocker for merging this in the meantime.

@radoering radoering added impact/backport Requires backport to stable branch backport/1.5 labels May 24, 2023
@radoering radoering merged commit f3f71ea into python-poetry:master May 24, 2023
18 checks passed
@poetry-bot poetry-bot bot mentioned this pull request May 24, 2023
poetry-bot bot pushed a commit that referenced this pull request May 24, 2023
radoering pushed a commit that referenced this pull request May 24, 2023
@ralbertazzi ralbertazzi deleted the fix/revert-7916 branch May 25, 2023 09:15
Copy link

github-actions bot commented Mar 3, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
impact/backport Requires backport to stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Poetry now does not add the package.dependencies
2 participants