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:
parent
72e3dd396c
commit
c5799aa62c
3 changed files with 20 additions and 9 deletions
|
|
@ -82,4 +82,8 @@ mkDerivation {
|
|||
"foo$" = "BAD";
|
||||
|
||||
exportReferencesGraph.refs = [ dep ];
|
||||
exportReferencesGraph.refs2 = [
|
||||
dep
|
||||
[ dep ]
|
||||
]; # regression test for heterogeneous arrays
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue