John Ericson
1c71cb4005
Remove some pointless std::visit
...
These are not needed, because the `toJSON` methods are already
implemented for the variant wrapper too.
2025-09-23 13:59:27 -04:00
John Ericson
af71a9dbd9
Fix JSON_IMPL macro to avoid extraneous copies
...
Should take the thing we're serializing by reference.
2025-09-23 13:05:12 -04:00
John Ericson
d9de675357
Merge pull request #14027 from obsidiansystems/more-ca-tests
...
More floating content-addressing derivation tests
2025-09-22 17:09:39 -04:00
John Ericson
7ea31c6e56
Run multiple outputs and build-delete test for CA drvs also
2025-09-22 16:54:30 -04:00
Jörg Thalheim
af82c847a7
Merge pull request #14048 from roberth/shellcheck
...
Shellcheck
2025-09-22 21:57:42 +02:00
Robert Hensing
8a9d9bb0e9
pre-commit: Remove exclusion for removed file
2025-09-22 21:06:26 +02:00
Robert Hensing
4183308ee2
tests/func*/characterisation-test-infra: Fix shellcheck
2025-09-22 21:06:26 +02:00
Robert Hensing
993ea14f52
pre-commit: Remove exclude that passes
2025-09-22 21:06:26 +02:00
Robert Hensing
926287d813
tests/func*/ca/common: Fix shellcheck
2025-09-22 21:06:26 +02:00
Robert Hensing
8c31e07cce
tests/func*/ca/build-with-garbage-path: Fix shellcheck
2025-09-22 21:06:26 +02:00
John Ericson
5292b0e49e
Merge pull request #14038 from NixOS/thread-safe-dummy
...
libstore: Make writable dummy store thread-safe
2025-09-22 14:26:35 -04:00
Robert Hensing
01357d0808
Merge pull request #14012 from obsidiansystems/drv-realisation-issue-13570
...
Convert Realisation JSON logic to standard style
2025-09-22 20:25:06 +02:00
Robert Hensing
8b97d14c08
pre-commit: Give reason for ca test wrappers exclusion
2025-09-22 19:57:28 +02:00
Robert Hensing
5af644492b
nix develop: Apply shellcheck
2025-09-22 19:31:22 +02:00
Sergei Zimmerman
5915fe3190
Revert "Use shared pointers in the memory source accessor"
...
This is no longer necessary.
This reverts commit 4df60e639b .
2025-09-22 20:22:17 +03:00
Sergei Zimmerman
c4c92c4c61
libstore: Make writable dummy store thread-safe
...
Tested by building with b_sanitize=thread and running:
nix flake prefetch-inputs --store "dummy://?read-only=false"
It might make sense to move this utility class out of dummy-store.cc,
but it seems fine for now.
2025-09-22 20:22:16 +03:00
Robert Hensing
43ec36cddf
pre-commit: Remove exclude that passes
2025-09-22 19:21:06 +02:00
Robert Hensing
033f13fb1a
pre-commit: Remove exclude that passes
2025-09-22 19:19:39 +02:00
Robert Hensing
34e9caaf9b
pre-commit: Move zsh exclude
2025-09-22 19:18:52 +02:00
Robert Hensing
6195dfff3a
pre-commit: Move fish exclude
2025-09-22 19:17:58 +02:00
Sergei Zimmerman
c71f80b6eb
libstore: Implement boost::hash for StorePath
2025-09-22 20:16:11 +03:00
Robert Hensing
1878e788ce
misc/bash/completion.sh: Fix shellcheck
2025-09-22 19:15:44 +02:00
Robert Hensing
c12187b15a
pre-commit: Drop exclude config/install-sh
...
This file was part of the make-based build, which has been removed.
2025-09-22 19:12:33 +02:00
Robert Hensing
df23f2b3c1
packaging/dev-shell: Add shellcheck
...
It was already in the closure for the pre-commit hook installation
script.
2025-09-22 19:09:35 +02:00
John Ericson
91593a237f
Convert Realisation JSON logic to standard style
...
No behavior is changed, just:
- Declare a canonical `nlohmnan::json::adl_serializer`
- Use `json-utils.hh` to shorten code without getting worse error
messages.
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2025-09-22 12:59:37 -04:00
John Ericson
6389f65d63
Rework derivation format release note slightly
2025-09-22 12:59:37 -04:00
Robert Hensing
169a368459
Merge pull request #14040 from NixOS/import-thunk
...
Ensure that files are parsed/evaluated only once (2nd attempt)
2025-09-22 18:33:00 +02:00
Eelco Dolstra
a0103fc302
Merge pull request #13852 from lovesegfault/warn-no-kvm
...
feat(libstore): warn when kvm is enabled but /dev/kvm isn't available
2025-09-22 18:31:57 +02:00
Jörg Thalheim
dcaf001d52
Merge pull request #14021 from jfroche/fix/installer-shell-path
...
installer: prepend nix paths to shell config files instead of appending
2025-09-22 18:27:03 +02:00
John Ericson
74b31d10db
Merge pull request #14042 from corngood/cygwin-cross
...
fix cross build for cygwin
2025-09-22 11:55:40 -04:00
David McFarland
32d4ea8140
fix cross-build for cygwin
2025-09-22 12:27:04 -03:00
Eelco Dolstra
d32d77f4d4
Allocate ExprParseFile on the heap for now
...
https://github.com/NixOS/nix/pull/14013#issuecomment-3308085755
2025-09-22 12:06:51 +02:00
Robert Hensing
28c0089268
Merge pull request #14039 from NixOS/document-expr-methods
...
libexpr: Document {eval,maybeThunk} methods
2025-09-22 11:59:55 +02:00
Eelco Dolstra
5f60602875
Reapply "Merge pull request #13938 from NixOS/import-thunk"
...
This reverts commit fd034814dc .
2025-09-22 11:48:58 +02:00
Robert Hensing
71b27774f0
libexpr: Document {eval,maybeThunk} methods
2025-09-22 01:41:02 +03:00
Robert Hensing
c121c65640
C API: Clarify valid use of bindings ordering
2025-09-21 21:16:46 +02:00
Robert Hensing
ab7feb3898
Merge pull request #14023 from NixOS/dummy-store-path-info
...
Make dummy store also store path info
2025-09-21 16:58:18 +02:00
Sergei Zimmerman
a453a49043
tests: Tests for writeable dummy in-memory store
2025-09-21 13:36:31 +03:00
Sergei Zimmerman
b66c357b58
libstore: Implement DummyStore::narFromPath
2025-09-21 13:19:50 +03:00
Sergei Zimmerman
3a4c618483
libstore: Fix typo in description of dummy store
2025-09-21 13:19:49 +03:00
Sergei Zimmerman
ed9b377928
libstore: Disable path info cache for dummy store
2025-09-21 13:19:48 +03:00
Sergei Zimmerman
341878ce0f
libstore: Make dummy store also store path info
2025-09-21 13:19:47 +03:00
Sergei Zimmerman
02c9ac445f
libutil: Improve handling of non-directory root in MemorySourceAccessor
2025-09-21 13:19:45 +03:00
John Ericson
4df60e639b
Use shared pointers in the memory source accessor
...
This allows aliasing, like hard links.
2025-09-21 13:19:44 +03:00
John Ericson
f66b56ad3f
Merge pull request #14035 from NixOS/github-fetcher-accessor
...
libfetchers/github: Use getFSAccessor for downloadFile result
2025-09-20 21:42:54 -04:00
Sergei Zimmerman
e04381edbd
libfetchers/github: Use getFSAccessor for downloadFile result
...
We should use proper abstractions for reading files from the store.
E.g. this caused errors when trying to download github flakes into
an in-memory store in #14023 .
2025-09-21 01:12:42 +03:00
Robert Hensing
d8d1fb0e34
Merge pull request #14029 from roberth/enable-libexpr-tests
...
libexpr-tests: Enable when test setup for building succeeds
2025-09-20 00:57:15 +02:00
Robert Hensing
d0b1caf53a
C API: Document and verify NIX_ERR_KEY behavior
2025-09-20 00:13:50 +02:00
Robert Hensing
2d1b412e5b
libexpr-tests: Enable when test setup for building succeeds
...
Accidentally disabled by 9bc218ca3f
2025-09-19 23:39:00 +02:00
Robert Hensing
3d777eb37f
C API: Add lazy attribute value and list item accessors
2025-09-19 23:39:00 +02:00