From 9ff24626b80ba633ebe7509a25698ace7a313ef5 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Fri, 19 Jul 2024 19:22:25 +0000 Subject: [PATCH] set_version.py: Update flake.lock Updating the lix version changes flake.nix inputs, but did not change flake.lock. Running `nix flake lock` is sufficient. Change-Id: Ib1f482a0deb5c95ff2c9fc4d715bbc0733a5630b --- flake.lock | 10 +++++----- set_version.py | 9 +++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index a27a16a..033ca18 100644 --- a/flake.lock +++ b/flake.lock @@ -46,15 +46,15 @@ "pre-commit-hooks": "pre-commit-hooks" }, "locked": { - "lastModified": 1718419213, - "narHash": "sha256-WY7BGnu5PnbK4O8cKKv9kvxwzZIGbIQUQLGPHFXitI0=", - "rev": "253546d5fbf8a5aa60ac8164c1b4f5794dc4e9d1", + "lastModified": 1720626042, + "narHash": "sha256-f8k+BezKdJfmE+k7zgBJiohtS3VkkriycdXYsKOm3sc=", + "rev": "2a4376be20d70feaa2b0e640c5041fb66ddc67ed", "type": "tarball", - "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/253546d5fbf8a5aa60ac8164c1b4f5794dc4e9d1.tar.gz" + "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/2a4376be20d70feaa2b0e640c5041fb66ddc67ed.tar.gz" }, "original": { "type": "tarball", - "url": "https://git.lix.systems/lix-project/lix/archive/2.90.0-rc1.tar.gz" + "url": "https://git.lix.systems/lix-project/lix/archive/2.90.0.tar.gz" } }, "naersk": { diff --git a/set_version.py b/set_version.py index 05562f2..0e1374e 100755 --- a/set_version.py +++ b/set_version.py @@ -3,6 +3,7 @@ from pathlib import Path import textwrap import dataclasses import requests +import subprocess SYSTEMS = ['x86_64-linux', 'x86_64-darwin', 'aarch64-linux', 'aarch64-darwin'] @@ -78,6 +79,14 @@ def main(): flake_nix = Path('flake.nix') replace_in_file(flake_nix, make_flake_url_section(args.new_version)) + subprocess.run([ + 'nix', + '--extra-experimental-features', + 'nix-command flakes', + 'flake', + 'lock', + ]) + if __name__ == '__main__': main()