Skip to content

v0.20.1

Choose a tag to compare

@jasonodoom jasonodoom released this 16 Sep 03:29
· 26 commits to main since this release
v0.20.1
8a971b6

A failed reproduction names the derivation it blames again, and can no longer be made to blame the wrong one.

Fixed

  • The agent reads the failing derivation from nix's own failure line and recognised only builder for '<drv>' failed. Nix 2.34 and 3.21, the version the reproducer pins, say Cannot build '<drv>'., so the field was empty on every real failure and per-derivation grouping had nothing to group by.

Security

  • A failing build could name a different derivation as the one that failed. The older wording was matched anywhere in the captured output, and a build controls what it writes, so printing that phrase against another derivation was enough to be believed. On current nix, where nix itself no longer writes that phrase, every such match would have come from the build. A regular expression returns its earliest match and nix quotes a build's log lines before its own error, so a forged line would have been preferred to the real one.
  • Both wordings are now taken only from the start of nix's own error: line, which quoted build output cannot begin.