srid / nixci

Define and build CI for Nix projects anywhere; superceded by Omnix https://omnix.page/om/ci.html
GNU Affero General Public License v3.0
108 stars 5 forks source link

fix: `--print-all-dependencies` should ignore `unknown-deriver` #76

Closed rsrohitsingh682 closed 1 month ago

rsrohitsingh682 commented 1 month ago

In nixci build while print-all-dependencies option sometimes nix-store query returns unknown-deriver and the returned deriver is not guaranteed to exist in the local store. Hence we should use --valid-derivers instead to obtain valid paths only.

Reference: https://github.com/NixOS/nix/blob/142e566adbce587a5ed97d1648a26352f0608ec5/doc/manual/src/command-ref/nix-store/query.md?plain=1#L99C3-L99C61

srid commented 1 month ago

@rsrohitsingh682 CI fails