NixOS / nix

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

How to recover from "some outputs are unexpectedly invalid" error? #9782

Open l0b0 opened 9 months ago

l0b0 commented 9 months ago

Problem

I ran into this error message. There are no relevant messages near to it, so I have no idea how to recover from it. Basically, the error message would have to answer all of the following to be useful:

Proposal

Checklist

Priorities

Add :+1: to issues you find important.

roberth commented 7 months ago

This message comes from assertPathValidity, which is called from a couple of places during the build process. More context should be added to the error, so that at least the various usages of the function can be distinguished. Then we'll know where to look for a bug.