mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-09-11 06:55:40 +03:00
Turn off trace
messages (when checkMaterialization
is disabled) to not bother user (#1555)
This commit is contained in:
parent
a32961b724
commit
e3397e0ace
@ -36,6 +36,11 @@ let
|
|||||||
then builtins.trace ("Warning: ignoring materialized for " + name + " " + reason) x
|
then builtins.trace ("Warning: ignoring materialized for " + name + " " + reason) x
|
||||||
else x;
|
else x;
|
||||||
|
|
||||||
|
traceWhenChecking = message: x:
|
||||||
|
if checkMaterialization
|
||||||
|
then builtins.trace message x
|
||||||
|
else x;
|
||||||
|
|
||||||
unchecked =
|
unchecked =
|
||||||
let
|
let
|
||||||
sha256message = "${name}: To make ${this} a fixed-output derivation but not materialized, set `${sha256Arg}` to the output of the 'calculateMaterializedSha' script in 'passthru'.";
|
sha256message = "${name}: To make ${this} a fixed-output derivation but not materialized, set `${sha256Arg}` to the output of the 'calculateMaterializedSha' script in 'passthru'.";
|
||||||
@ -50,10 +55,10 @@ let
|
|||||||
else if sha256 != null
|
else if sha256 != null
|
||||||
then
|
then
|
||||||
# Let the user know how to materialize if they want to.
|
# Let the user know how to materialize if they want to.
|
||||||
builtins.trace materializeMessage calculateUseHash
|
traceWhenChecking materializeMessage calculateUseHash
|
||||||
else # materialized == null && sha256 == null
|
else # materialized == null && sha256 == null
|
||||||
# Let the user know how to calculate a sha256 or materialize if they want to.
|
# Let the user know how to calculate a sha256 or materialize if they want to.
|
||||||
builtins.trace sha256message (builtins.trace materializeMessage calculateNoHash);
|
traceWhenChecking sha256message (traceWhenChecking materializeMessage calculateNoHash);
|
||||||
|
|
||||||
# Build fully and check the hash and materialized versions
|
# Build fully and check the hash and materialized versions
|
||||||
checked =
|
checked =
|
||||||
|
Loading…
Reference in New Issue
Block a user