John Ericson
371fcf91c3
Merge pull request #13294 from obsidiansystems/fix-13293
...
Fix #13293
2025-06-11 16:55:43 -04:00
John Ericson
5267718472
Fix #13293
...
We move the `assertPathValidity` to where we know what the wanted
outputs are.
2025-06-11 16:15:26 -04:00
Eelco Dolstra
168184a0d4
Merge pull request #100 from DeterminateSystems/lib-tests-lazy
...
Run nixpkgsLibTests in lazy trees mode
2025-06-11 18:51:13 +00:00
Luc Perkins
27755169f9
Merge pull request #92 from DeterminateSystems/lucperkins/fh-864-fix-error-messages-to-avoid-fake-future-tense
...
Fix some instances of 'will'
2025-06-11 17:27:24 +00:00
Luc Perkins
42c50aafad
Fix broken link in configuration description
2025-06-11 08:55:46 -07:00
Luc Perkins
525078c59d
Fix broken link in configuration description
2025-06-11 08:52:04 -07:00
Eelco Dolstra
31e58dcb92
nix-instantiate --eval --xml: Devirtualize the output
2025-06-11 17:18:42 +02:00
Eelco Dolstra
df7a2a1bed
nix-instantiate --eval --json: Devirtualize the output
2025-06-11 17:14:33 +02:00
Eelco Dolstra
2f5a545997
fetchToStore(): Improve caching in dry-run mode
...
In dry-run mode, we don't need to require a valid path.
2025-06-11 16:13:40 +02:00
Graham Christensen
c6f87378db
Update src/libmain/plugin.cc
...
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
2025-06-11 10:02:27 -04:00
Graham Christensen
ac6318c9c5
Merge pull request #97 from DeterminateSystems/fix-duplicate-builtins
...
Don't register extra primops twice
2025-06-11 13:10:23 +00:00
Eelco Dolstra
7f6efe93e4
Don't register extra primops twice
...
This was the result of a bad merge.
2025-06-11 13:06:14 +02:00
Sergei Zimmerman
408873c2f7
libexpr: Use c_str getter
2025-06-10 13:37:06 +00:00
Sergei Zimmerman
77f5f50ec2
libexpr: Use context getter
2025-06-10 13:37:04 +00:00
Sergei Zimmerman
c2aaa68c2c
libexpr: Use primOp getter
2025-06-10 13:37:01 +00:00
Robert Hensing
c5b1be46b4
Merge pull request #11406 from kstrafe/master
...
nix repl: Print which variables are just loaded
2025-06-07 13:53:13 +02:00
Robert Hensing
102259898c
Merge pull request #13258 from NaN-git/opt-symbol-table
...
Optimize symbol table
2025-06-07 13:16:14 +02:00
Eelco Dolstra
86785fd9d1
fetchToStore(): Fix caching
...
This was broken because MountedSourceAccessor did not return a
fingerprint. Previously fingerprints were global to an accessor, but
with a MountedSourceAccessor the fingerprint can be different for each
mount point.
2025-06-06 22:09:35 +02:00
Eelco Dolstra
f8ef941c04
fetchToStore(): Cache in dry-run mode
2025-06-06 21:50:55 +02:00
Eelco Dolstra
74af43ee91
Remove superfluous semicolon
...
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2025-06-06 20:03:33 +02:00
Luc Perkins
a989a23d1a
Fix some instances of 'will'
2025-06-06 10:51:58 -07:00
Eelco Dolstra
e18b1637dc
Fix display of paths in substituted source trees
...
These got displayed as e.g.
«github:NixOS/nixpkgs/adaa24fbf46737f3f1b5497bf64bae750f82942e?narHash=sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY%3D»/nix/store/x9wnkly3k1gkq580m90jjn32q9f05q2v-source/pkgs/stdenv/generic/source-stdenv.sh
Now we get
«github:NixOS/nixpkgs/adaa24fbf46737f3f1b5497bf64bae750f82942e?narHash=sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY%3D»/pkgs/stdenv/generic/source-stdenv.sh
2025-06-06 19:41:12 +02:00
Eelco Dolstra
a69b99ade0
Add ForwardingSourceAccessor
2025-06-06 19:40:57 +02:00
Eelco Dolstra
91b3573770
Rethrow non-EOF errors
2025-06-06 17:09:01 +02:00
Eelco Dolstra
d8b067b549
repl: Don't wait on incomplete parses from imported file
...
Fixes #13332 .
2025-06-06 14:14:57 +02:00
Seth Flynn
fcdffffa37
lockFlake(): Allow registry lookups for overridden inputs
...
Fixes #13144
(cherry picked from commit d0a2323829 )
2025-06-06 08:12:20 +00:00
Jörg Thalheim
37b4407c5c
Merge pull request #13284 from getchoo-contrib/getchoo/override-input-local-registry
...
lockFlake(): Allow registry lookups for overridden inputs
2025-06-06 10:11:27 +02:00
Kevin Robert Stravers
13e3704329
nix repl: Add :ll to show all recently loaded variables
...
Invoking `:ll` will start a pager with all variables which have just
been loaded by `:lf`, `:l`, or by a flake provided to `nix repl` as an
argument.
https://github.com/NixOS/nix/issues/11404
2025-06-05 17:33:04 -04:00
Kevin Robert Stravers
3c9b9b13af
nix repl: Print which variables are just loaded
...
When we run `nix repl nixpkgs` we get "Added 6 variables". This is not
useful as it doesn't tell us which variables the flake has exported to
our global repl scope.
This patch prints the name of each variable that was just loaded. We
currently cap printing to 20 variables in order to avoid excessive
prints.
https://github.com/NixOS/nix/issues/11404
2025-06-05 17:32:57 -04:00
Eelco Dolstra
4bce2d723d
GitSourceAccessor: Make thread-safe
2025-06-04 21:39:15 +02:00
Cole Helbling
dfa7b2a288
libstore/unix/derivation-builder: error earlier when sandbox path is inaccessible
2025-06-04 12:16:34 -07:00
Cole Helbling
63e9e9df37
fixup: only show "you can rerun" message if the derivation's platform is supported on this machine
2025-06-03 10:53:05 -07:00
Jörg Thalheim
4b8f74b3a3
Merge pull request #13320 from DeterminateSystems/keep-failed-remote-builders-warning
...
Clarify that `--keep-failed` with remote builders will keep the failed build directory on that builder
2025-06-03 19:28:20 +02:00
Sergei Zimmerman
a2567f6d7a
Clear displayPrefix in makeEmptySourceAccessor
...
Judging by the comment for `makeEmptySourceAccessor` the prefix has
to be empty:
> Return a source accessor that contains only an empty root directory.
Fixes #13295 .
(cherry picked from commit fba1bb0c13 )
2025-06-03 19:27:15 +02:00
Cole Helbling
54aa73b19b
fixup: only show "you can rerun" message if the derivation's platform is supported on this machine
2025-06-03 08:38:50 -07:00
Cole Helbling
0712339912
--keep-failed with remote builders will keep the failed build directory on that builder
2025-06-03 07:50:29 -07:00
Jörg Thalheim
6a761c1a60
Merge pull request #13296 from xokdvium/empty-accessor-prefix
...
Clear `displayPrefix` in `makeEmptySourceAccessor`
2025-06-03 01:32:46 +02:00
Cole Helbling
242719cffb
--keep-failed with remote builders will keep the failed build directory on that builder
2025-06-02 14:41:29 -07:00
Graham Christensen
f8aabb0749
Merge pull request #79 from DeterminateSystems/path-position-info
...
Include the source location when warning about inefficient double copies
2025-06-02 18:51:49 +00:00
Graham Christensen
7a450a8ba9
Update src/libexpr/paths.cc
2025-06-02 14:08:42 -04:00
Graham Christensen
8a82624801
Merge pull request #81 from DeterminateSystems/push-twpuyuspwtpz
...
Replace ε and ∅
2025-06-02 17:32:11 +00:00
Jörg Thalheim
e72f19eb28
Merge pull request #13300 from NixOS/deletePath-keep-going
...
deletePath(): Keep going when encountering an undeletable file
2025-06-02 18:00:10 +02:00
Graham Christensen
1500e541f2
diff-closures: use removed / added words
2025-06-02 11:21:26 -04:00
Eelco Dolstra
665e76f2e5
deletePath(): Keep going when encountering an undeletable file
...
This should reduce the impact of #5207 .
2025-06-02 17:17:09 +02:00
Graham Christensen
724d552b64
Use words like added / removed
2025-06-02 09:30:18 -04:00
Graham Christensen
039d19159f
Replace ∅ with (absent)
2025-06-02 09:29:55 -04:00
Graham Christensen
7d2dbbd3aa
Rename ε to "(no version)"
2025-06-02 09:22:55 -04:00
Eelco Dolstra
6b6d3dcf34
deletePath(): Keep going when encountering an undeletable file
...
This should reduce the impact of #5207 .
2025-06-02 14:54:01 +02:00
Eelco Dolstra
86767349d5
Merge pull request #13304 from fzakaria/small-fix
...
Fix overriding gtest with gmock
2025-06-02 14:02:47 +02:00
Eelco Dolstra
7ad4426b8b
Merge pull request #13310 from xokdvium/cleanup-position
...
libutil: Use `std::shared_ptr<const Pos>` and simplify `Pos` class constructors
2025-06-02 14:02:25 +02:00