lix/tests/unit/libstore
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: lix-project/lix#253
Fixes: lix-project/lix#112
Change-Id: I9ee826323f2deca62854715a77ca7a373a948a29
2024-11-06 18:11:47 -08:00
..
data Delete old ValidPathInfo test, fix UnkeyedValidPathInfo 2024-06-16 19:13:51 -07:00
common-protocol.cc refactor: make HashType and Base enum classes for type safety 2024-08-08 14:53:17 -07:00
derivation.cc tree-wide: shuffle headers around for about 30s compile time 2024-08-28 09:55:05 -07:00
derived-path.cc derived-path: refuse built derived path with a non-derivation base 2024-05-17 02:16:15 +02:00
downstream-placeholder.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
filetransfer.cc libstore: pause only stalling transfers 2024-10-30 22:52:19 +00:00
machines.cc treewide: consistently mark overridden settings as such 2024-10-15 19:55:50 +02:00
nar-info-disk-cache.cc feat: Add temp-dir setting 2024-11-06 18:11:47 -08:00
outputs-spec.cc Fix various clang-tidy lints 2024-03-29 20:26:38 -07:00
path.cc Disallow store path names that are . or .. (plus opt. -) 2024-05-02 19:34:38 +02:00
protocol.hh tree-wide: shuffle headers around for about 30s compile time 2024-08-28 09:55:05 -07:00
references.cc Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
serve-protocol.cc refactor: make HashType and Base enum classes for type safety 2024-08-08 14:53:17 -07:00
worker-protocol.cc refactor: make HashType and Base enum classes for type safety 2024-08-08 14:53:17 -07:00