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

Nix 2.19.0+ => `devour-flake produced an outpath with no outputs` #35

Closed srid closed 6 months ago

srid commented 7 months ago

Happens when using Nix 2.19.0 or latter:

image

But not when using Nix 2.18.1:

image
srid commented 7 months ago

This must have broke it:

There is a new flake installable syntax flakeref#.attrPath where the "." prefix specifies that attrPath is interpreted from the root of the flake outputs, with no searching of default attribute prefixes like packages.<SYSTEM> or legacyPackages.<SYSTEM>. https://nixos.org/manual/nix/stable/release-notes/rl-2.19

Possibly we should replace .?dir=./dev in that first command with path:./dev (and 'path:.?dir=dev' is unsupported).

https://github.com/juspay/nix-browser/blob/main/crates/nix_rs/src/flake/url.rs