diff options
author | Nikodem RabuliĆski <nikodem@rabulinski.com> | 2024-05-17 21:54:14 +0200 |
---|---|---|
committer | jade <lix@jade.fyi> | 2024-06-03 21:50:33 +0000 |
commit | 5d3910330d91f89c190c2bd5fb9c93cc2e8989d1 (patch) | |
tree | 27a5b75c9488afd490c8c8d0fbe4f4d33d2e8b6c /src/nix | |
parent | cc3674ea93a83a7a191f5c3cb047c4f74dd60dcd (diff) |
Show message about `--update-input` being replaced by `nix flake update`
Fixes: https://git.lix.systems/lix-project/lix/issues/283
Change-Id: I6ee23874cb09f51d788521273076a25ba8764859
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/flake.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 1648c56d0..d24f746f8 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -134,6 +134,15 @@ struct CmdFlakeLock : FlakeCommand CmdFlakeLock() { + addFlag({ + .longName="update-input", + .description="Replaced with `nix flake update input...`", + .labels={"input-path"}, + .handler={[&](std::string inputToUpdate){ + throw UsageError("`nix flake lock --update-input %1%` has been replaced by `nix flake update %1%`", inputToUpdate); + }} + }); + /* Remove flags that don't make sense. */ removeFlag("no-write-lock-file"); } |