Revert #289135: lua*: support relative modules even when there are system modules

This reverts commit ca6452f8ed.
Regressions appeared and they need time to get resolved; see:
https://github.com/NixOS/nixpkgs/pull/289135#issuecomment-1978270396
This commit is contained in:
Vladimír Čunát 2024-03-07 16:11:40 +01:00
parent 590e65a7b3
commit 0f6ddea2ff
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -22,11 +22,6 @@ addToLuaSearchPathWithCustomDelimiter() {
# export only if we haven't already got this dir in the search path
if [[ ${!varName-} == *"$absPattern"* ]]; then return; fi
# if the path variable has not yet been set, initialize it to ";;"
# this is a magic value that will be replaced by the default,
# allowing relative modules to be used even when there are system modules.
if [[ -v "${varName}" ]]; then export "${varName}=;;"; fi
export "${varName}=${!varName:+${!varName};}${absPattern}"
}