pyflow icon indicating copy to clipboard operation
pyflow copied to clipboard

pyflow randomizes the order of pyflow.lock every time I run a script through it

Open comex opened this issue 2 years ago • 2 comments

Every time I run pyflow ./foo.py, it rewrites pyflow.lock. By itself I find that somewhat surprising: since I might run this command very frequently, I would expect it to skip writing the file if nothing changed, to avoid unnecessary I/O. More importantly, though, the packages are written out in a seemingly random order every time, creating unnecessary diffs. Perhaps a hash map iteration order issue?

comex avatar May 26 '22 05:05 comex

For the record, I reproduced this on 4c6ec9b.

comex avatar May 28 '22 00:05 comex

I've just installed Pyflow and noticed it also. It will cause unnecessary diffs in git (for example when using git diff cmd to see what's changed). Any way to prevent it?

SergeiMinaev avatar Nov 16 '22 21:11 SergeiMinaev