John Ericson
d76dc2406f
Merge pull request #14060 from obsidiansystems/build-result-variant
...
Use `std::variant` to enforce `BuildResult` invariants
2025-09-30 11:02:13 -04:00
Jörg Thalheim
bc66e131f8
Merge pull request #14120 from lovesegfault/http-binary-cache-compression
...
feat(libstore/http-binary-cache-store): narinfo/ls/log compression
2025-09-30 12:50:10 +02:00
Jörg Thalheim
6e6f88ac45
add changelog for http binary cache compression
2025-09-30 11:05:20 +02:00
Jörg Thalheim
3fcd33079c
add http binary cache test for compression options
2025-09-30 10:35:46 +02:00
Jörg Thalheim
a5facbd2d1
Merge pull request #14121 from obsidiansystems/file-transfer-quit
...
Some Curl file transfer cleanups
2025-09-30 09:12:08 +02:00
Jörg Thalheim
a5b35ec129
Merge pull request #14106 from Radvendii/exprpath-alloc
...
libexpr: allocate ExprPath strings in the allocator
2025-09-30 09:04:24 +02:00
John Ericson
e52e801421
Merge pull request #14123 from NixOS/path-tests-pure-eval
...
libexpr-tests: Add unit tests for broken readDir /. for pure eval
2025-09-30 00:33:51 -04:00
Sergei Zimmerman
a8670e8a7d
libexpr-tests: Add unit tests for broken readDir /. for pure eval
...
A very unfortunate interaction of current filtering with pure eval is
that the following actually leads to `lib.a = {}`. This just adds a unit
test for this broken behavior. This is really good to be done as a unit test
via the in-memory store.
{
outputs =
{ ... }:
{
lib.a = builtins.readDir /.;
};
}
2025-09-30 03:16:35 +03:00
John Ericson
86fb5b24a9
curlFileTransfer::workerThreadEntry Only call quit if we need to.
2025-09-29 18:10:34 -04:00
John Ericson
1f65b08d94
curlFileTransfer::State:quit emptys the queue
...
Whoever first calls `quit` now empties the queue, instead of waiting for
the worker thread to do it.
(Note that in the unwinding case, the worker thread is still the first
to call `quit`, though.)
2025-09-29 18:10:34 -04:00
John Ericson
d5402b8527
Encapsulate curlFileTransfer::State:quit
...
It is allowed to read it, and to set it to `false`, but not to set it
to `true`.
2025-09-29 18:10:34 -04:00
Bernardo Meurer Costa
689fa81dc9
feat(libstore/http-binary-cache-store): narinfo/ls/log compression
2025-09-29 21:53:40 +00:00
Sergei Zimmerman
823c0d1140
Merge pull request #14118 from xokdvium/fix-make-empty-source-accessor
...
libutil: Create empty directory at the root for makeEmptySourceAccessor
2025-09-29 21:19:02 +00:00
Taeer Bar-Yam
f70b0b599c
libexpr: allocate ExprPath strings in the allocator
2025-09-29 17:02:05 -04:00
Sergei Zimmerman
1830f5f967
libutil: Create empty directory at the root for makeEmptySourceAccessor
...
This is my SNAFU. Accidentally broken in 02c9ac445f .
There's very dubious behavior for 'builtins.readDir /.':
{
outputs =
{ ... }:
{
lib.a = builtins.readDir /.;
};
}
nix eval /tmp/test-flake#lib.a
Starting from 2.27 this now returns an empty set. This really isn't supposed
to happen, but this change in the semantics of makeEmptySourceAccessor accidentally
changed the behavior of this.
2025-09-29 23:16:28 +03:00
Jörg Thalheim
13a236ba29
Merge pull request #14114 from fzakaria/fzakaria/shellcheck-multiple-4
...
shellcheck fixes continued
2025-09-29 21:32:19 +02:00
Farid Zakaria
ef17baf50d
shellcheck fix: tests/functional/parallel.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
4dc5dbaba2
shellcheck fix: tests/functional/parallel.builder.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
c09cf33a3a
shellcheck fix: tests/functional/output-normalization.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
32818483a5
shellcheck fix: tests/functional/optimise-store.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
375529c7e5
shellcheck fix: tests/functional/nix_path.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
fe4e476d13
shellcheck fix: tests/functional/nix-shell.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
78833ca8d0
shellcheck fix: tests/functional/nix-profile.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
cf206ef61e
shellcheck fix: tests/functional/nix-daemon-untrusting.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
8c2664ed15
shellcheck fix: tests/functional/nix-copy-ssh.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
ca7414cd18
shellcheck fix: tests/functional/nix-copy-ssh-ng.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
c9fd721be9
shellcheck fix: tests/functional/nix-copy-ssh-common.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
83e203fe45
shellcheck fix: tests/functional/nix-collect-garbage-d.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
2b1a0963f9
shellcheck fix: tests/functional/nix-channel.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
2bfc9019fa
shellcheck fix: tests/functional/nix-build.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
794723142b
shellcheck fix: tests/functional/nested-sandboxing/command.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
1a71c1ef9f
shellcheck fix: tests/functional/nested-sandboxing.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
e26b0c66b0
shellcheck fix: tests/functional/multiple-outputs.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
f2eef5b0a4
shellcheck fix: tests/functional/misc.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
5a13f9fc91
shellcheck fix: tests/functional/logging.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
c4da98c8f4
shellcheck fix: tests/functional/linux-sandbox.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
5341d82428
shellcheck fix: tests/functional/legacy-ssh-store.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
f702101224
shellcheck fix: tests/functional/install-darwin.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
78d9a8d92b
shellcheck fix: tests/functional/impure-eval.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
1cd96f22c0
shellcheck fix: tests/functional/impure-derivations.sh
2025-09-29 10:52:17 -07:00
Farid Zakaria
f3a2876c3a
shellcheck fix: tests/functional/hash-convert.sh
2025-09-29 10:52:16 -07:00
Robert Hensing
8a968c599d
Merge pull request #14116 from fzakaria/fzakaria/shellcheck-multiple-5
...
shellcheck fixes CA functional tests
2025-09-29 19:48:05 +02:00
Farid Zakaria
4232cb045a
Remaining functional/ca tests for shellcheck
2025-09-29 10:25:49 -07:00
Farid Zakaria
5846d9d4dc
shellcheck fix: tests/functional/ca/build-dry.sh
2025-09-29 10:12:04 -07:00
Farid Zakaria
745d1f9519
shellcheck fix: tests/functional/ca/build-delete.sh
2025-09-29 10:11:29 -07:00
Jörg Thalheim
fca6d8f1cc
Merge pull request #14112 from EphraimSiegfried/make-content-addressed-doc-fix
...
docs: fix build command in make-content-addressed.md
2025-09-29 18:45:14 +02:00
Farid Zakaria
52b9fb38e0
shellcheck fix: tests/functional/gc-non-blocking.sh
2025-09-29 09:23:41 -07:00
Farid Zakaria
2e5952fb6a
shellcheck fix: tests/functional/gc-concurrent2.builder.sh
2025-09-29 09:22:45 -07:00
Farid Zakaria
75df03204b
shellcheck fix: tests/functional/gc-concurrent.sh
2025-09-29 09:21:47 -07:00
Farid Zakaria
613bd67574
shellcheck fix: tests/functional/gc-concurrent.builder.sh
2025-09-29 09:20:02 -07:00