NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.67k stars 1.51k forks source link

Nix aborts updating with an assertion failure. #10360

Open NorfairKing opened 7 months ago

NorfairKing commented 7 months ago

Describe the bug

$ nix flake update github:NorfairKing/smos/development --output-lock-file flake.lock
warning: creating lock file 'flake.lock'
nix: src/libfetchers/fetchers.cc:303: virtual void nix::fetchers::InputScheme::markChangedFile(const nix::fetchers::Input&, std::string_view, std::optional<std::__cxx11::basic_string<char> >): Assertion `false' failed.
[1]    1201096 abort (core dumped)  nix --print-build-logs flake update github:NorfairKing/smos/development 

Steps To Reproduce

Run that command

thufschmitt commented 7 months ago

I can reproduce on 2.18.2 (couldn't try later yet because I hit the github rate limits, but it would require changing the cli to nix flake update --flake github:NorfairKing/smos/development --output-lock-file flake.lock)

edolstra commented 7 months ago

Works for me on master.

nixos-discourse commented 6 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-04-03-nix-team-meeting-135/42962/1