David-OConnor / pyflow

An installation and dependency system for Python
MIT License
1.33k stars 44 forks source link

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

Open comex opened 2 years ago

comex commented 2 years ago

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 commented 2 years ago

For the record, I reproduced this on 4c6ec9b.

SergeiMinaev commented 1 year ago

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?