From ae03473d8a4025b50075b2650b58ea6670d0d411 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Sat, 17 Aug 2024 13:42:31 -0700 Subject: [PATCH] Fix: make Lix actually update the lock file correctly Workaround for: https://git.lix.systems/lix-project/lix/issues/465 Change-Id: If275926403f902fd784ffb122726a21c88f13136 --- set_version.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/set_version.py b/set_version.py index 0e1374e..0b0b2ee 100755 --- a/set_version.py +++ b/set_version.py @@ -79,12 +79,15 @@ def main(): flake_nix = Path('flake.nix') replace_in_file(flake_nix, make_flake_url_section(args.new_version)) + # This is required to force Lix to update the lock file due to: + # https://git.lix.systems/lix-project/lix/issues/465 subprocess.run([ 'nix', '--extra-experimental-features', 'nix-command flakes', 'flake', - 'lock', + 'update', + 'lix', ]) if __name__ == '__main__':