From 05981008b77496a93837c00da3f9306ecd52b760 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Mon, 24 Feb 2025 13:06:38 +0000 Subject: [PATCH] ci/update: fix `inputs.nixpkgs.rev` eval Need to use raw output to avoid having a quoted string, otherwise we end up with a malformed flakeref: error: in URL 'github:NixOS/nixpkgs/"2d068ae5c6516b2d04562de50a58c682540de9bf"', '"2d068ae5c6516b2d04562de50a58c682540de9bf"' is not a commit hash or branch/tag name --- .github/workflows/update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 333c9c7e..c1a57fe0 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -121,7 +121,7 @@ jobs: id: dev_flake_lock if: inputs.dev_lock || github.event_name == 'schedule' run: | - root_nixpkgs=$(nix eval -f . 'inputs.nixpkgs.rev') + root_nixpkgs=$(nix eval --raw --file . 'inputs.nixpkgs.rev') old=$(git show --no-patch --format=%h) nix flake update --commit-lock-file \ --override-input nixpkgs "github:NixOS/nixpkgs/$root_nixpkgs" \