diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2023-10-31 16:19:05 +0100 |
---|---|---|
committer | Lunaphied <lunaphied@lunaphied.me> | 2024-03-25 17:36:24 -0600 |
commit | 86881226b0e51c204f07385b7b57743c23e34d44 (patch) | |
tree | 737e75ee7cc6ec8932b850ff6f20adfc4e285628 /doc | |
parent | aa7653608d4d0028bb98af491aec76b2fea7f882 (diff) |
Merge pull request #8817 from iFreilicht/flake-update-lock-overhaul
Overhaul `nix flake update` and `nix flake lock` UX
(cherry picked from commit 12a0ae73dbb37becefa5a442eb4532ff0de9ce65)
Change-Id: Iff3b4f4235ebb1948ec612036b39ab29e4ca22b2
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/rl-next/nix-flake-update-ux.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/manual/rl-next/nix-flake-update-ux.md b/doc/manual/rl-next/nix-flake-update-ux.md new file mode 100644 index 000000000..f0f42cda8 --- /dev/null +++ b/doc/manual/rl-next/nix-flake-update-ux.md @@ -0,0 +1,17 @@ +--- +synposis: "`Overhaul `nix flake update` and `nix flake lock` UX" +prs: 8817 +--- + +The interface for creating and updating lock files has been overhauled: + +- [`nix flake lock`](@docroot@/command-ref/new-cli/nix3-flake-lock.md) only creates lock files and adds missing inputs now. +It will *never* update existing inputs. + +- [`nix flake update`](@docroot@/command-ref/new-cli/nix3-flake-update.md) does the same, but *will* update inputs. +- Passing no arguments will update all inputs of the current flake, just like it already did. +- Passing input names as arguments will ensure only those are updated. This replaces the functionality of `nix flake lock --update-input` +- To operate on a flake outside the current directory, you must now pass `--flake path/to/flake`. + +- The flake-specific flags `--recreate-lock-file` and `--update-input` have been removed from all commands operating on installables. +They are superceded by `nix flake update`. |