Files
Adam Dinwoodie b3981c0896 requireFile: don't perform Bash expansion
When printing the error message with instructions to manually obtain a
fixed-output derivation using requireFile, print the string as escaped
using `escapeShellArg`, rather than using a here-doc where Bash
expansion will be performed.

This permits passing instructions that contain characters that Bash
would normally expand without needing to escape them (or even know that
they need escaping from Bash), for example instructions referencing
`$PWD`.

Document this in the current release notes, and update existing
requireFile calls that perform this now-unnecessary escaping.  In
passing, fix up a couple of minor message errors.
2026-04-11 11:18:18 -07:00
..