Sort lock file before writing

This commit is contained in:
IamTheFij 2024-06-19 22:00:32 -07:00
parent 9a1a92d232
commit 94334492b8

View File

@ -174,4 +174,4 @@ def write_lock_packages(
packages: Iterable[Package], package_file: str = DEFAULT_PACKAGE_FILE
):
with open(package_file, "w") as f:
f.writelines(f"{package.serialize()}\n" for package in packages)
f.writelines(sorted(f"{package.serialize()}\n" for package in packages))