mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 20:16:03 +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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@
|
|||
|
||||
source common.sh
|
||||
|
||||
# 27ce722638 required some incompatible changes to the nix file, so skip this
|
||||
# tests for the older versions
|
||||
requireDaemonNewerThan "2.4pre20210712"
|
||||
# https://github.com/NixOS/nix/pull/14189
|
||||
requireDaemonNewerThan "2.33"
|
||||
|
||||
clearStoreIfPossible
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue