edolstra / flake-compat

MIT License
241 stars 72 forks source link

input `nixpkgs.url = "nixpkgs"` crashes? #41

Closed jsoo1 closed 2 years ago

jsoo1 commented 2 years ago

I am not sure if this is a bug or I am using flake-compat wrong. When the flake in question has input nixpkgs.url = "nixpkgs", and the lockfile has "path": "/nix/store...-source", flake-compat fails with

error: getting attributes of path '/nix/store/...-source': No such file or directory
jsoo1 commented 2 years ago

I assumed the flake.lock file was ok, since I had just nix flake lock --update-input nixpkgs, but I realized the type had not been updated. Seems this is a lockfile staleness issue.