builtins.toJSON is missing string context

#393
Opened by qyliss at 2024-04-03T14·39+00

builtins.hasContext (builtins.toJSON {
  drv = derivation {
    name = "test";
    builder = "/bin/sh";
    system = builtins.currentSystem;
  };
})

True in cppnix; false in tvix. Not fixed by cl/11266.

  1. Fixed by https://cl.tvl.fyi/c/depot/+/11266, I believe now, which has a similar construction as a test case.

    raitobezarius at 2024-04-08T13·30+00

  2. Seems true now. Closing.

    flokli at 2024-04-22T21·11+00

  3. flokli closed this issue at 2024-04-22T21·11+00