1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-11 04:56:01 +01:00

exportReferencesGraph: Handle heterogeneous arrays

This barfed with

   error: [json.exception.type_error.302] type must be string, but is array

on `nix build github:malt3/bazel-env#bazel-env` because it has a `exportReferencesGraph` with a value like `["string",...["string"]]`.

(cherry picked from commit 94f410b628)
This commit is contained in:
Eelco Dolstra 2025-10-08 19:59:04 +02:00 committed by github-actions[bot]
parent 72e3dd396c
commit c5799aa62c
3 changed files with 20 additions and 9 deletions

View file

@ -82,4 +82,8 @@ mkDerivation {
"foo$" = "BAD";
exportReferencesGraph.refs = [ dep ];
exportReferencesGraph.refs2 = [
dep
[ dep ]
]; # regression test for heterogeneous arrays
}