Unverified Commit fe52f190 authored by Austin Horstman's avatar Austin Horstman
Browse files

vim/kakoune updaters: preserve src.tag metadata

Keep fetcher tag metadata when reading current plugin state from Nix.

The updater needs to know whether a plugin was fetched by tag or by commit.
Without carrying src.tag through, tagged sources are read back as if rev were
always the canonical source identifier, which breaks tag-aware comparisons and
cache behavior later in the update flow.
parent 9326dae2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ let
          submodules = value.src.fetchSubmodules or false;
          sha256 = value.src.outputHash;
          rev = value.src.rev;
          tag = value.src.tag or null;
        }}
      else
        null;
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ let
          submodules = value.src.fetchSubmodules or false;
          sha256 = value.src.outputHash;
          inherit (value.src) rev;
          tag = value.src.tag or null;
        }
      else
        null;