Files
lix/tests/functional/warn-import-from-derivation.sh
T
b7cf773540 libexpr: warn when encountering IFD with warn-import-from-derivation
This is intended to be a softer version of
`allow-import-from-derivation`, allowing for users to only flag when IFD
is encountered rather than error out

Based-on: https://github.com/NixOS/nix/pull/13279
Co-authored-by: gustavderdrache <alex.ford@determinate.systems>
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Change-Id: I879a444e3a24b4e82a8cea3a5a94834c78c3924a
2026-03-05 13:39:12 +00:00

9 lines
233 B
Bash

source common.sh
clearStore
nix-build ./import-derivation.nix \
--no-out-link \
--option warn-import-from-derivation true \
2>&1 | grepQuiet "warning: building '.*' during evaluation due to the use of import from derivation"