lix/tests/unit
Lily Ballard 3c8096e5cb feat: Add temp-dir setting
This adds a new temp-dir setting for controlling the temporary directory
without having to change the TMPDIR env var. This can be used to e.g.
use a path on a case-sensitive store on macOS for temporary files
without changing the TMPDIR var used by interactive shells or commands
invoked with `nix run`.

This also stops unsetting `TMPDIR` on darwin when the env var value
starts with `/var/folders/`, preferring instead to just do the check
when reading `TMPDIR`. This way the inherited `TMPDIR` env var is
preserved for child processes (such as interactive shells).

As a side effect this changes the behavior of `nix-build -o ''` to act
like `nix-build --no-out-link` instead of failing with an error caused
by trying to create a symlink at the cwd.

Fixes: #253
Fixes: #112
Change-Id: I9ee826323f2deca62854715a77ca7a373a948a29
2024-11-06 18:11:47 -08:00
..
libcmd util.hh: Delete remaining file and clean up headers 2024-05-29 12:38:51 +02:00
libexpr libexpr: Deprecate URL literals 2024-08-17 20:31:57 +02:00
libexpr-support/tests libexpr: Introduce Deprecated features 2024-08-17 19:47:51 +02:00
libmain main: log stack traces for std::terminate 2024-09-25 14:03:45 -07:00
libstore feat: Add temp-dir setting 2024-11-06 18:11:47 -08:00
libstore-support/tests Test including relative paths in configuration 2024-09-01 15:52:48 -07:00
libutil treewide: consistently mark overridden settings as such 2024-10-15 19:55:50 +02:00
libutil-support/tests Test including relative paths in configuration 2024-09-01 15:52:48 -07:00
meson.build Merge "Remove static initializers for RegisterLegacyCommand" into main 2024-10-09 20:37:58 +00:00