nickel-lang / organist

Control all your tooling from a single console
MIT License
421 stars 21 forks source link

Fix running without nickel.lock.ncl present #137

Closed YorikSar closed 1 year ago

YorikSar commented 1 year ago

It was failing with:

error: builder for '/nix/store/p87gqv2g1gc59f3rq04b3ygkq8m60di2-nickel-res.json.drv' failed with exit code 1;
       last 1 log lines:
       > chmod: cannot access 'sources/nickel.lock.ncl': No such file or directory
       For full logs, run 'nix-store -l /nix/store/p87gqv2g1gc59f3rq04b3ygkq8m60di2-nickel-res.json.drv'.

Also add tests for cases without nickel.lock.ncl and with expected one.

Extracted from https://github.com/nickel-lang/organist/pull/135 for quicker turnaround.