Rebecca Turner
0cee56db1a
Fix logging.sh test on macOS
...
On macOS in the `nix develop` shell, `make
tests/functional/logging.sh.test` errors:
++(logging.sh:18) mktemp
+(logging.sh:18) builder=/var/folders/z5/fclwwdms3r1gq4k4p3pkvvc00000gn/T/tmp.StuabKUhMh
+(logging.sh:19) echo -e '#!/bin/sh\nmkdir $out'
+++(logging.sh:22) mktemp -d
++(logging.sh:22) nix-build -E 'with import ./config.nix; mkDerivation { name = "fnord"; builder = /var/folders/z5/fclwwdms3r1gq4k4p3pkvvc00000gn/T/tmp.StuabKUhMh; }' --out-link /var/folders/z5/fclwwdms3r1gq4k4p3pkvvc00000gn/T/tmp.oaKcy0NXqC/result
error:
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'fnord'
whose name attribute is located at «string»:1:42
… while evaluating attribute 'args' of derivation 'fnord'
at /Users/wiggles/nix/tests/functional/config.nix:23:7:
22| builder = shell;
23| args = ["-e" args.builder or (builtins.toFile "builder-${args.name}.sh" ''
| ^
24| if [ -e "$NIX_ATTRS_SH_FILE" ]; then source $NIX_ATTRS_SH_FILE; fi;
error: path '/var' is a symlink
+(logging.sh:22) outp=
++(logging.sh:22) onError
++(/Users/wiggles/nix/tests/functional/common/vars-and-functions.sh:237) set +x
logging.sh: test failed at:
main in logging.sh:22
This is because `mktemp` returns a path like
`/var/folders/z5/fclwwdms3r1gq4k4p3pkvvc00000gn/T/tmp.qDY24l6bIM`,
where `/var` is a symlink to `/private/var`.
Then, we attempt to use that path as a `builder`, which errors because
symlinks are impure or whatever.
Anyways, we can fix this by using `realpath "$(mktemp)"` instead of
`mktemp` directly.
NB: This error doesn't seem to happen when I run the tests through `nix
flake check`. I'm not sure if Nix does something to `TMP` in that case.
2023-12-18 14:04:25 -08:00
..
2023-12-11 12:17:36 -05:00
2023-11-10 11:02:37 -05:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-12-11 16:05:34 +01:00
2023-12-15 23:57:26 -08:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-11-15 19:21:17 +01:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-12-03 17:18:58 -08:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-11-21 13:35:12 -05:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-31 15:33:57 +01:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-11-28 14:28:19 +01:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-12-11 12:17:36 -05:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-11-28 14:28:19 +01:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-11-20 17:25:40 +01:00
2023-10-06 09:05:56 -04:00
2023-10-31 14:52:21 +01:00
2023-11-09 16:48:41 +01:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-12-06 23:43:42 +01:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-11 11:58:42 +00:00
2023-10-11 11:58:42 +00:00
2023-12-14 19:47:10 -05:00
2023-10-25 11:39:18 +02:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-11-06 19:13:40 +00:00
2023-10-18 00:14:11 +05:30
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-18 00:14:11 +05:30
2023-12-14 19:47:10 -05:00
2023-12-18 14:04:25 -08:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-11-03 11:03:58 +01:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-12-13 15:22:19 -05:00
2023-12-13 15:22:19 -05:00
2023-12-13 15:22:19 -05:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-23 17:32:50 +02:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-11-06 11:06:31 -05:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-18 00:14:11 +05:30
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-12-06 14:05:32 +01:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-23 17:32:50 +02:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-17 09:39:59 +05:30
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-24 22:14:35 +02:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00
2023-11-09 22:31:32 +02:00
2023-10-06 09:05:56 -04:00
2023-10-06 09:05:56 -04:00