mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
add sort_keys param to sort lockfile
This commit is contained in:
+1
-1
@@ -440,7 +440,7 @@ def do_lock():
|
||||
|
||||
# Write out lockfile.
|
||||
with open(project.lockfile_location, 'w') as f:
|
||||
f.write(json.dumps(lockfile, indent=4, separators=(',', ': ')))
|
||||
json.dump(lockfile, f, indent=4, separators=(',', ': '), sort_keys=True)
|
||||
|
||||
# Purge the virtualenv download dir, for next time.
|
||||
with spinner():
|
||||
|
||||
Reference in New Issue
Block a user