You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a pipeline using pipenv, I ran into a weird situation where the Pipfile would get corrupted in certain cases, when there would be multiple entries in an array of tables and the last one was at the end of the file AND that does not have a final newline at the end
The following python code reproduces the problem with tomlkit 0.13.2
Without this final line-ending, reordering steps will fail because
tables will be added directly to the previous value (see issue python-poetry#381)
when creating the string from the Container again, we remove any final
line-ending if we added it initially to ensure we do not modify the
original behavior
When creating a pipeline using pipenv, I ran into a weird situation where the Pipfile would get corrupted in certain cases, when there would be multiple entries in an array of tables and the last one was at the end of the file AND that does not have a final newline at the end
The following python code reproduces the problem with tomlkit 0.13.2
Running this python code will give the following (wrong) output:
As you can see, the
foo
table entry is put directly after the last entry of productsIf you add a trailing newline at the end of the file, this problem does not occur.
The text was updated successfully, but these errors were encountered: