abathur / resholve

a shell resolver? :) (find and resolve shell script dependencies)
MIT License
231 stars 5 forks source link

Nix API for `keep` breaks on empty attrset #33

Closed grahamc closed 3 years ago

grahamc commented 3 years ago

This breaks:

  solutions.default = {
    scripts = [ "${basename}" ];
    interpreter = "${bash}/bin/bash";
    keep ={};
}
       > no Makefile, doing nothing
       > installing
       > post-installation fixup
       > /nix/store/pphlhsh6qpxsyp8c7j6ja18gp10s41cw-check-0.0.0 /build/check
       > Traceback (most recent call last):
       >   File "/nix/store/x1988xrwidf8nsfls5kd7fjby6dwlnqc-resholve-0.5.1/bin/.resholve-wrapped", line 1990, in <module>
       >     sys.exit(punshow())
       >   File "/nix/store/x1988xrwidf8nsfls5kd7fjby6dwlnqc-resholve-0.5.1/bin/.resholve-wrapped", line 573, in punshow
       >     directives.keep.update(group)
       > TypeError: 'NoneType' object is not iterable