File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 47
47
( traceIgnoringMaterialized reasonNotSafe calculateNoHash )
48
48
else if materialized != null
49
49
then calculateUseMaterialized
50
- else if sha256 != null
51
- then
52
- # Let the user know how to materialize if they want to.
53
- builtins . trace materializeMessage calculateUseHash
54
- else # materialized == null && sha256 == null
55
- # Let the user know how to calculate a sha256 or materialize if they want to.
56
- builtins . trace sha256message ( builtins . trace materializeMessage calculateNoHash ) ;
50
+ # Turn off trace messages when checkMaterialization is disabled to not bother user.
51
+ else if checkMaterialization
52
+ then if sha256 != null
53
+ then
54
+ # Let the user know how to materialize if they want to.
55
+ builtins . trace materializeMessage calculateUseHash
56
+ else # materialized == null && sha256 == null
57
+ # Let the user know how to calculate a sha256 or materialize if they want to.
58
+ builtins . trace sha256message ( builtins . trace materializeMessage calculateNoHash )
59
+ else x : x ;
57
60
58
61
# Build fully and check the hash and materialized versions
59
62
checked =
60
63
# Let the user know what we are checking. This is useful for debugging issues
61
- # where materialization fails to prevent infinite recurstion when:
64
+ # where materialization fails to prevent infinite recursion when:
62
65
# checkMaterialization = true;
63
66
( if materialized != null
64
67
then __trace "Checking materialization in ${ toString materialized } "
You can’t perform that action at this time.
0 commit comments