snix/snix
Domen Kožar 1621ae21e7 chore(glue/tests): pretty print the errors
Previously we'd print out raw error structure, now it's pretty printed:

thread 'tests::eval_okay::code_path_04_src_tests_snix_tests_eval_okay_fetchgit_nix' panicked at glue/src/tests/mod.rs:79:9:
/home/domen/dev/snix/snix/glue/src/tests/snix_tests/eval-okay-fetchgit.nix: evaluation of eval-okay test should succeed, but failed with:
note: while evaluating this as native code (final_deep_force)
  --> /home/domen/dev/snix/snix/glue/src/tests/snix_tests/eval-okay-fetchgit.nix:1:1
   |
1  | / let
2  | | assertTimestamps = result:
3  | |   let
4  | |     requiredAttrs = ["lastModified" "lastModifiedDate"];
...  |
27 | |       #}))
28 | |     ]
   | |_____^
note: while evaluating this as native code (deep_force)
  --> /home/domen/dev/snix/snix/glue/src/tests/snix_tests/eval-okay-fetchgit.nix:11:5
   |
11 |     builtins.removeAttrs result requiredAttrs;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: while evaluating this as native code (force)
  --> /home/domen/dev/snix/snix/glue/src/tests/snix_tests/eval-okay-fetchgit.nix:14:26
   |
14 |         (assertTimestamps (builtins.fetchGit {
   |  __________________________^
15 | |         url = "https://git.snix.dev/snix/snix.git";
16 | |         ref = "canon";
17 | |         rev = "75d788b0f2";
18 | |       }))
   | |_______^
error[E997]: error from producer: clone fetch error: An IO error occurred when talking to the server
  --> /home/domen/dev/snix/snix/glue/src/tests/snix_tests/eval-okay-fetchgit.nix:14:26
   |
14 |         (assertTimestamps (builtins.fetchGit {
   |  __________________________^
15 | |         url = "https://git.snix.dev/snix/snix.git";
16 | |         ref = "canon";
17 | |         rev = "75d788b0f2";
18 | |       }))
   | |_______^

Change-Id: I451714d682e42bf5ef8df3e80299807ca37683b7
Reviewed-on: https://cl.snix.dev/c/snix/+/30184
Reviewed-by: Florian Klink <flokli@flokli.de>
Tested-by: besadii
2025-03-21 17:34:54 +00:00
..
.vscode chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
boot chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
build chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
build-go chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
castore chore(third_party/sources): Update 2025-03-18 23:23:16 +00:00
castore-go chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
cli feat(tvix/cli): Include nixos docs in installer tests 2025-03-18 17:55:11 +00:00
docs fix(treewide): add missing final newlines 2025-03-21 13:33:32 +00:00
eval fix(snix/eval/value): drop into_bstring 2025-03-21 13:46:35 +00:00
glue chore(glue/tests): pretty print the errors 2025-03-21 17:34:54 +00:00
nar-bridge chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
nix-compat fix(treewide): add missing final newlines 2025-03-21 13:33:32 +00:00
nix-compat-derive chore(third_party/sources): Update 2025-03-18 23:23:16 +00:00
nix-compat-derive-tests chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
nix-daemon tests(tvix/nix-daemon): add a test suite for tvix nix-daemon 2025-03-18 21:50:22 +00:00
nix-lang-test-suite chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
serde chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
store chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
store-go chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
tracing chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
verify-lang-tests chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
.gitignore chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
Cargo.lock feat(glue/builtins): add builtins.parseFlakeRef 2025-03-19 23:31:04 +00:00
Cargo.nix feat(glue/builtins): add builtins.parseFlakeRef 2025-03-19 23:31:04 +00:00
Cargo.toml chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
clippy.toml chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
crate-hashes.json fix(treewide): add missing final newlines 2025-03-21 13:33:32 +00:00
default.nix feat(readTree): Add special here argument. 2025-03-18 20:48:29 +00:00
LICENSE chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
logo.webp chore(snix): s/tvix/snix/ 2025-03-17 17:15:08 +00:00
shell.nix fix(tvix/shell): simplify darwin-specific overrides 2025-03-18 23:07:01 +00:00
utils.nix fix(snix/utils): use filterRustCrateSrc for nix-daemon 2025-03-18 15:29:28 +00:00