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

Fail if `flake.nix` inputs point to a missing branch #49

Open srid opened 5 months ago

srid commented 5 months ago

nix build won't necessarily catch this due to the possibility of these inputs being cached.

There's no standard way to do this. But here's one trick that works:

image

Are there better approaches?

srid commented 5 months ago

This solution however is not general enough as it applies only to VCS inputs and not to say direct URL inputs (eg: tarball).