lua: Don't flood stdout when included in `mkShell` (#369577)

K900 796f4b7f 1446a936

Changed files
+4 -4
pkgs
development
interpreters
lua-5
+4 -4
pkgs/development/interpreters/lua-5/utils.sh
···
_addToLuaPath() {
local dir="$1"
-
echo "_addToLuaPath called for dir $dir"
+
nix_debug "_addToLuaPath called for dir $dir"
if [[ ! -d "$dir" ]]; then
nix_debug "$dir not a directory abort"
···
# if [ -n "${pythonPathsSeen[$dir]}" ]; then return; fi
if [[ -n "${luaPathsSeen[$dir]:-}" ]]; then
# if [ -n "${luaPathsSeen[$dir]}" ]; then
-
echo "$dir already parsed"
+
nix_debug "$dir already parsed"
return
fi
···
if [ -e "$prop" ]; then
local new_path
for new_path in $(cat $prop); do
-
echo "newpath: $new_path"
+
nix_debug "newpath: $new_path"
_addToLuaPath "$new_path"
done
fi
···
local luaPath="$1"
local path
-
echo "BUILD_LUA_PATH"
+
nix_debug "BUILD_LUA_PATH"
# # Create an empty table of paths (see doc on loadFromPropagatedInputs
# # for how this is used). Build up the program_PATH variable.