eldritch horrors
8d389fcccf
testing: migrate selfref-gc.sh
...
Change-Id: Ibead4030448fb9251be78b3c876c7f054154c83c
2026-02-28 22:09:44 +00:00
eldritch horrors
f4c92f8872
testing: migrate function-trace.sh
...
Change-Id: I44bd28165070f55f21b052bc02ba6f2ea5787a1d
2026-02-28 22:09:44 +00:00
eldritch horrors
fae0242f69
testing: migrate ssh-relay.sh
...
Change-Id: I520c8be1c30b4ee7660c8ceeba62a6d0757c337b
2026-02-28 22:09:44 +00:00
eldritch horrors
e8cb30b11c
testing: fix f2 NIX_BIN_DIR determination from meson
...
`nix.full_path()` is the *built* path, not the *installed* path. in the
sandbox this point to a location that contains *only* `nix`, not any of
the old-cli symlinks. any test that needs them in path would thus fail.
Change-Id: Ia651db8d1151a84f8d1b52e8993f6db61b0fe104
2026-02-28 22:09:44 +00:00
skye
f856d4fd25
libexpr: Migrate EvalState::evalFile to return a Value
...
Change-Id: I19ce8623477dd96628476b3e3dd58cfd6a6a6964
2026-02-28 15:53:10 -05:00
skye
debf5554e0
libexpr: Consolidate implementation between Value string constructors
...
Change-Id: I5bf8d58b534cd652d89f7b93019378b66a6a6964
2026-02-28 15:53:10 -05:00
skye
be3a40e5dc
libexpr: Replace Value::mkString with constructor calls
...
Change-Id: I55bba546eb090728a71734450a2a5f496a6a6964
2026-02-28 15:53:10 -05:00
Tom Hubrecht
d52033fc77
nix/develop: Don't ignore SSL_CERT_FILE when its value is meaningful
...
Change-Id: I31e85a5995edc40ed2e687077ffdf563e717abb4
2026-02-28 12:32:45 +00:00
benaryorg
052d04512e
libfetchers: Provide gitDir for rev-list operation
...
Without the `--git-dir` git will attempt to figure out which the git directory is on its own.
This causes issues when the `GIT_DIR` envvar is set in the environment for other reasons (such as being part of a `git rebase`).
Providing this parameter overrides the environment and thus makes sure the revs are always coming from the intended repository.
Fixes : #1135
Change-Id: Ibd43cfd8e0278463c0e1ccf86779982947a6038a
Signed-off-by: benaryorg <binary@benary.org >
2026-02-28 09:06:18 +00:00
eldritch horrors
dda934965d
testing: migrate build-jobless.sh
...
Change-Id: Ica9a0c5b8bea50d302ad633d3801431adcdba5e7
2026-02-27 17:43:07 +00:00
eldritch horrors
378c86eadf
testing: migrate compute-levels.sh
...
this test wasn't even run
Change-Id: I735c8b2d2c63a65c665d6344a98ddb3bbbf94f43
2026-02-27 17:42:17 +00:00
eldritch horrors
298373615e
testing: migrate impure-eval.sh
...
Change-Id: Ifd2b6c117511461ce08fa3f9e63635857cb5b015
2026-02-27 17:42:17 +00:00
eldritch horrors
14d8209198
testing: migrate output-normalization.sh
...
Change-Id: I51a021b27fa27b531bb49b8529bae2e9bf74641a
2026-02-27 17:42:17 +00:00
eldritch horrors
b2ae7c3965
testing: migrate pass-as-file.sh
...
Change-Id: I9c3a940ede9353e977e60e0650eaa5a64cc6fa5e
2026-02-27 17:42:17 +00:00
eldritch horrors
32a96169d6
testing: migrate optimise-store.sh
...
Change-Id: I900183e11ba1405c9aa72028a8902ad8cf023e69
2026-02-27 17:42:17 +00:00
eldritch horrors
5fb0dd156d
testing: migrate build.sh
...
Change-Id: I9d2da21cc226e0c1ef2dfa4d475c1989bbbfaf79
2026-02-27 17:42:17 +00:00
eldritch horrors
5f2c771b5a
testing: migrate placeholders.sh
...
Change-Id: Iad6a6f53dac23cc5e49961571dd4c0545d616d7e
2026-02-27 17:42:17 +00:00
eldritch horrors
b8b69dde05
testing: migrate local-store.sh
...
Change-Id: I5172fc2611a56b19f55d5c05dacdfef5cf330739
2026-02-27 17:42:17 +00:00
eldritch horrors
26f1397b75
testing: migrate suggestions.sh
...
Change-Id: Iad28262035aa96c5ef6fa33e2a830b5fa8a9ae50
2026-02-27 17:42:17 +00:00
eldritch horrors
8cf21fcf75
testing: migrate case-hack.sh
...
Change-Id: I552dd596764a779e1485a6326363d4f4283110f3
2026-02-27 17:42:17 +00:00
eldritch horrors
4caa622d78
testing: migrate fetchMercurial.sh
...
Change-Id: Iab81ea161e3be69bf7753b3ed9cd8f59cd8fe0ed
2026-02-27 17:42:17 +00:00
Qyriad
f13566a3f6
repl: fix 'tokens-no-whitespace' in :use's Nix expression
...
Change-Id: Ifa2bc6b1204cc5a85422128c76b192296a6a6964
2026-02-27 08:51:40 +00:00
eldritch horrors
0bcdfe2c43
testing: migrate fmt.sh
...
Change-Id: Icc593b57a06c7fdf75762094982788f6351dcadc
2026-02-26 19:43:39 +00:00
Raito Bezarius
bcab3d5da3
libstore/build: set impure environment variables only if they are set
...
To stop spurious warnings, we will stop this bizarre behavior of setting
empty values to impure environment variables.
On the warning side, we verify that the presence of the environment
variable.
The corresponding test is updated to "there is a warning" to "there is
no warning".
Change-Id: I12f5c6445ef00a83d269488d7aed0b0f61aeec12
2026-02-26 15:33:22 +00:00
Raito Bezarius
72a6d5ff48
tests/functional2: test spurious warnings for certificates
...
All impure environment variables are initialized as part of `initEnv()`
to an empty value if they are unset.
Whenever `NIX_SSL_CERT_FILE` is set, this cause a spurious warning.
Let's document it here as a test before we fix it.
Change-Id: Iccba8ccb487d9cc25490e940ff09c1c5a13ae097
Signed-off-by: Raito Bezarius <raito@lix.systems >
2026-02-26 15:33:22 +00:00
Raito Bezarius
0741e24266
tests/functional2: migrate (un|)sandboxed CA tests
...
CA tests have grown quite complicated and are hard to debug and
manoeuver for new needs.
They are a prime target for F2 migration and they were extremely
pleasant to write.
Most functionality is preserved or improved with additional behaviors
asserted on warnings and the full set of reports.
Change-Id: I70cd52abbe5ff13f56744b966ab00962ad3a49d6
Signed-off-by: Raito Bezarius <raito@lix.systems >
2026-02-26 15:33:22 +00:00
eldritch horrors
dde7bddbd4
f2: fix Nix::add_[dx]p_feature type hints
...
Change-Id: I743b3ac821315465d1d22700ca9b06d8cc1985f0
2026-02-26 14:16:13 +00:00
eldritch horrors
f2df62439c
testing: migrate flakes/flakes.sh (part 18)
...
nonflake inputs
Change-Id: I5017ece5028652e3ae19c5e00e67358fc9c0253d
2026-02-26 13:11:25 +00:00
eldritch horrors
30ce32e2f6
testing: migrate flakes/flakes.sh (part 17)
...
symlinks in flake dirs, recursive lookups, update with override
Change-Id: I1491ca8e618ff5e06a06d3cc3648ae0750a1ffde
2026-02-26 13:11:25 +00:00
eldritch horrors
b92f1aa865
testing: migrate flakes/flakes.sh (part 16)
...
input overrides during locking
Change-Id: I20e8e8bc2579f2f9bbaf7b522647a520d010ec43
2026-02-26 13:11:25 +00:00
eldritch horrors
cbe4d1b339
testing: migrate flakes/flakes.sh (part 15)
...
flake follows handling during locking
Change-Id: Ia3f2b7a8df1d0ec51fd97d14d49788b33dda7754
2026-02-26 13:11:25 +00:00
eldritch horrors
2634585a48
testing: migrate flakes/flakes.sh (part 14)
...
flake clone
Change-Id: I6697d109465eaededfb2ac8ee552b6ac971d2e8a
2026-02-26 13:11:25 +00:00
eldritch horrors
f0f8117d5b
testing: migrate flakes/flakes.sh (part 13)
...
builds with incomplete lockfiles
Change-Id: Ibf386ec98208d5b706236277e2eae9e144d9bdb0
2026-02-26 13:11:25 +00:00
eldritch horrors
93af25a706
testing: migrate flakes/flakes.sh (part 12)
...
gc rooting behavior
Change-Id: I7b3aa765b8e08aa8a4ce96988629ee76c76b46a0
2026-02-26 13:11:25 +00:00
eldritch horrors
c45e34bbc5
testing: migrate flakes/flakes.sh (part 11)
...
input updates with cli commands
Change-Id: Idddfe77a285f9c2cbc4f1463454af539042bc23e
2026-02-26 13:11:25 +00:00
eldritch horrors
f864626a1c
testing: migrate flakes/flakes.sh (part 10)
...
getFlake behavior
Change-Id: Iff9bb6e834ff2545db11b72f5a6ab3ddf42e5662
2026-02-25 12:47:08 +00:00
eldritch horrors
c090a9d1ec
testing: migrate flakes/flakes.sh (part 9)
...
bulk of build tests
Change-Id: I2b357162e16e2d14bb8ae6247ad126ad452c0825
2026-02-25 12:47:08 +00:00
eldritch horrors
3327a1fcae
testing: migrate flakes/flakes.sh (part 8)
...
eval-system influences attribute choice
Change-Id: I02d611ed17748c73d5c77ebd0a44f558ab63d1c8
2026-02-25 12:47:08 +00:00
eldritch horrors
7976f9fb6e
testing: migrate flakes/flakes.sh (part 7)
...
registry maintenance and queries
Change-Id: Id0aef61ce91972417ba3a941aba7b2c9ca05bf7c
2026-02-25 12:47:08 +00:00
eldritch horrors
b4846d4e51
testing: migrate flakes/flakes.sh (part 6)
...
flake attr matching
Change-Id: If5a1f01f9939740636482d2755eb836e2166ce97
2026-02-25 12:47:08 +00:00
eldritch horrors
5d11ed07f5
testing: migrate flakes/flakes.sh (part 5)
...
build bare repo, build tarball, lock path urls without repo
Change-Id: I7cb7494dcf29ec9b88c923c54a798685725785a1
2026-02-25 12:47:08 +00:00
eldritch horrors
4ef9fb3aee
testing: migrate flakes/flakes.sh (part 4)
...
metadata query functionality
Change-Id: I8f3866316994426664468edfbe154505ed2428af
2026-02-25 12:47:08 +00:00
eldritch horrors
126ef6321d
testing: migrate flakes/flakes.sh (part 3)
...
add-path and path-info interactions
Change-Id: I8649442eb54d539957d4339a00b948e1173d2da7
2026-02-25 12:47:08 +00:00
eldritch horrors
987a906317
testing: migrate flakes/flakes.sh (part 2)
...
legacy cli interactions
Change-Id: Ibdefbbf4b10ea8554a75caf589bb1f5a26639f4a
2026-02-25 12:47:08 +00:00
eldritch horrors
1df00b7db0
testing: migrate flakes/flakes.sh (part 1)
...
handling of alternate lock file locations
Change-Id: I402fa3b1a48805e571eecc6772f2656e93c68086
2026-02-25 12:47:08 +00:00
eldritch horrors
e76c6afd8d
testing: migrate flakes/follow-paths.sh
...
Change-Id: I825445a51f496dbe2efde684a0045e6fb56d9c0a
2026-02-25 12:47:08 +00:00
Thomas Miedema and Qyriad
6182a5e659
nix-daemon: source nix-profile-daemon.sh only once
...
Cherry-picked-from: https://github.com/NixOS/nix/pull/12805
Co-authored-by: Qyriad <qyriad@qyriad.me >
Fixes : #1134
Change-Id: I0c575f6b974e06b5064564bb084829fa6a6a6964
2026-02-24 18:36:39 +00:00
skye
53c0e884d8
Migrate EvalState::eval from out param to return a Value
...
Instead of taking in a final argument `Value &` out parameter which it
writes to, it now returns its result
Change-Id: Iab6bc3a3ac6a4b17c6d31115a766a6ea6a6a6964
2026-02-24 13:00:30 -05:00
skye
d14613459b
libexpr: Migrate EvalState::callFunction to return a Value
...
Previously it had an out parameter. Now it has a return value.
Change-Id: I9ec465a7d23b99da9132f1ab0fcc5cf16a6a6964
2026-02-24 13:00:30 -05:00
eldritch horrors
3b0e2ddd0a
libutil: don't report DecompressionStream shutdown errors
...
we already report errors that happen during reads via exceptions
rethrown from read. reporting errors during destruction too is a
source of confusion for users since these errors are not usually
relevant and just the decompressor thread reporting short reads.
shorts reads during shutdown are not an error, they're expected.
fixes #1138
Change-Id: I7983ef0ed7722460f1d683bc8171a454b3d06e90
2026-02-24 15:28:56 +01:00