Skip to content

Commit

Permalink
fix: ensure lockfile is formatted when new (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored Sep 4, 2024
1 parent dfc64c2 commit 37dda99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions relock.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def main(
check=True,
capture_output=True,
)
_reformat_lockfile(lock_file)

if not have_existing_lock_file:
print(
Expand Down Expand Up @@ -181,8 +182,6 @@ def main(
)

if any(relock_tuples[platform] for platform in envyml["platforms"]):
_reformat_lockfile(lock_file)

msg = "The following packages have been updated:\n\n"
for platform in envyml["platforms"]:
msg += f" platform: {platform}\n"
Expand Down

0 comments on commit 37dda99

Please sign in to comment.