No description
Find a file
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
.gcroots feat(.envrc): gcroot third_party.sources 2022-09-15 11:27:53 +00:00
.nixery chore(3p/sources): bump to OpenSSH vulnerability hotfix 2024-07-01 17:42:30 +00:00
contrib chore(ops): move archivist machine to ops and contrib 2025-03-20 12:21:44 +00:00
docs doc(contributing): place commit conventions upfront 2025-03-21 16:13:25 +00:00
fun/clbot refactor(fun/clbot): drop changeShouldBeSkipped functionality 2025-03-21 16:36:29 +00:00
nix chore: Remove buildGo and supporting infrastructure 2025-03-21 09:58:25 +00:00
ops fix(ops/machines/build01): switch to Lix in nix.package 2025-03-21 13:46:35 +00:00
snix chore(glue/tests): pretty print the errors 2025-03-21 17:34:54 +00:00
third_party chore: Remove buildGo and supporting infrastructure 2025-03-21 09:58:25 +00:00
tools fix(tools/depotfmt): cleanup rustfmt excludes 2025-03-21 16:37:29 +00:00
web doc(contributing): place commit conventions upfront 2025-03-21 16:13:25 +00:00
.editorconfig feat(editorconfig): add global editorconfig 2025-03-19 11:35:35 +00:00
.envrc feat(.envrc): only gcroot explicitly specified 3p/sources 2025-01-11 16:04:43 +00:00
.git-blame-ignore-revs fix: add cl/4397 (treewide nixpkgs-fmt) to git-blame-ignore-revs 2022-02-07 18:15:09 +00:00
.gitignore feat(buildkite): avoid building extraSteps in pipeline construction 2024-03-07 15:39:56 +00:00
.gitreview chore: Introduce .gitreview file 2024-08-31 13:05:23 +00:00
.hgignore chore(hgignore): ignore .git for hg 2020-06-14 18:23:13 +00:00
.mailmap chore(mailmap): Add my name and email 2024-08-11 01:23:46 +00:00
.rgignore chore: Only exclude //third_party/git from ripgrep 2020-05-17 23:58:22 +01:00
buf.gen.yaml fix(treewide): add missing final newlines 2025-03-21 13:33:32 +00:00
buf.yaml chore(buf): Use nixpkgs-provided buf 2022-10-21 18:39:03 +00:00
default.nix fix(default.nix): drop usersFilter 2025-03-20 12:21:44 +00:00
LICENSE feat(LICENSE): add Snix Project 2025-03-17 12:45:09 +00:00
OWNERS chore: update OWNERS 2025-03-20 12:21:43 +00:00
README.md chore(*): drop everything that is not required for Tvix 2025-03-17 16:18:26 +00:00
RULES feat(whitby): Let sterni bear the wheel 2021-05-23 19:06:15 +00:00
rustfmt.toml feat(depotfmt): Check & format Rust code with rustfmt 2022-02-08 12:06:39 +00:00

Snix is a modern Rust re-implementation of the components of the Nix package manager.

For more information, checkout the website, hosted at snix.dev, which also is available in the web/ subdirectory of this repository.