-
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
Remove tomlkit regression mitigation #5675
Comments
Bisected the regression. It's because of python-poetry/tomlkit#149. I believe this change falls way too short. Tomlkit now keeps Windows line endings when reading but probably doesn't expect Windows line endings in some parts of the code. Further, if you read a file with Windows line endings, change it and write it back you may get mixed line endings (because "\n" used in code are not converted to "\r\n" anymore when writing). Even though the change fixes #2993, it makes things a lot worse for toml files with Windows line endings. Not sure, if there is an easy fix. Maybe, we should think about reverting this change in our vendored tomlkit in poetry-core. |
Do not tihnk that is a viable option for a few reasons.
|
Would replacing our |
Unfortunately, I created a PR so at least We can either wait for a tomlkit version with python-poetry/tomlkit#201 (or another fix for python-poetry/tomlkit#200) or proceed with python-poetry/poetry-core#403. |
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. |
In #5673 we introduced a mitigation for a
tomlkit
regression on Windows. The root cause of this has to be identified, addressed and mitigation addressed.Mitigation commit: 1d71955
The text was updated successfully, but these errors were encountered: