···
trace ( "Warning: `attrNamesToStr` is deprecated "
120
-
+ "and will be removed in the next release." )
120
+
+ "and will be removed in the next release. "
121
+
+ "Please use more specific concatenation "
122
+
+ "for your uses (`lib.concat(Map)StringsSep`)." )
(lib.concatStringsSep "; " (map (x: "${x}=") (attrNames a)));
···
trace ( "Warning: `traceXMLVal` is deprecated "
145
-
+ "and will be removed in the next release." )
147
+
+ "and will be removed in the next release. "
148
+
+ "Please use `traceValFn builtins.toXML`." )
(trace (builtins.toXML x) x);
traceXMLValMarked = str: x:
trace ( "Warning: `traceXMLValMarked` is deprecated "
149
-
+ "and will be removed in the next release." )
152
+
+ "and will be removed in the next release. "
153
+
+ "Please use `traceValFn (x: str + builtins.toXML x)`." )
(trace (str + builtins.toXML x) x);
# trace the arguments passed to function and its result
···
trace ( "Warning: `traceValIfNot` is deprecated "
160
-
+ "and will be removed in the next release." )
164
+
+ "and will be removed in the next release. "
165
+
+ "Please use `if/then/else` and `traceValSeq 1`.")
(if c x then true else traceSeq (showVal x) false);
addErrorContextToAttrs = attrs:
trace ( "Warning: `addErrorContextToAttrs` is deprecated "
166
-
+ "and will be removed in the next release." )
171
+
+ "and will be removed in the next release. "
172
+
+ "Please use `builtins.addErrorContext` directly." )
(lib.mapAttrs (a: v: lib.addErrorContext "while evaluating ${a}" v) attrs);
# example: (traceCallXml "myfun" id 3) will output something like
···
# args should be printed in any case
trace ( "Warning: `traceCallXml` is deprecated "
176
-
+ "and will be removed in the next release." )
182
+
+ "and will be removed in the next release. "
183
+
+ "Please complain if you use the function regularly." )
traceCallXml 1 "calling ${a}\n"