Skip to content

Commit

Permalink
Merge pull request #10459 from Ma27/backport-rl-2.20-changes
Browse files Browse the repository at this point in the history
[2.20] Backport changes to release notes
  • Loading branch information
thufschmitt committed Apr 11, 2024
2 parents 1cf8c57 + 077bc08 commit fcdf99b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions doc/manual/src/release-notes/rl-2.20.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,32 @@
error: expected a set but found an integer
```

- Functions are printed with more detail [#7145](https://github.com/NixOS/nix/issues/7145) [#9606](https://github.com/NixOS/nix/pull/9606)

`nix repl`, `nix eval`, `builtins.trace`, and most other places values are
printed will now include function names and source location information:

```
$ nix repl nixpkgs
nix-repl> builtins.map
«primop map»
nix-repl> builtins.map lib.id
«partially applied primop map»
nix-repl> builtins.trace lib.id "my-value"
trace: «lambda id @ /nix/store/8rrzq23h2zq7sv5l2vhw44kls5w0f654-source/lib/trivial.nix:26:5»
"my-value"
```

- Flake operations like `nix develop` will no longer fail when run in a Git
repository where the `flake.lock` file is `.gitignore`d
[#8854](https://github.com/NixOS/nix/issues/8854)
[#9324](https://github.com/NixOS/nix/pull/9324)

- `nix copy` to a `ssh-ng` store now needs `--substitute-on-destination` (a.k.a. `-s`)
in order to substitute paths on the remote store instead of copying them.
The behavior is consistent with `nix copy` to a different kind of remote store.
Previously this behavior was controlled by the
`builders-use-substitutes` setting and `--substitute-on-destination` was ignored.

0 comments on commit fcdf99b

Please sign in to comment.