tvix-eval: inherit of missing attribute is not caught during tryEval

#362
Opened by raitobezarius at 2023-12-29T22·26+00

Reproducer: let pkgs = import <nixpkgs> {}; in builtins.tryEval (builtins.toJSON pkgs.pkgsCross.riscv64.androidndkPkgs.binaries) in the REPL.

Expected: works. Got: E005.

  1. Seems like an eval error issue. Tvix hits the missing sdkVer attribute, bailing out (missing attributes can't be caught), while C++ Nix forces os first which contains a throw (can be caught).

    sterni at 2023-12-30T10·11+00

  2. Yep, unable to debug that though. For the time being, I decided to refactor this code to make it easier to test.

    raitobezarius at 2023-12-31T01·39+00