Unverified Commit 0f6ddea2 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

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

This reverts commit ca6452f8edba8aaf9252b692ac821f1313ec9e7a.
Regressions appeared and they need time to get resolved; see:
https://github.com/NixOS/nixpkgs/pull/289135#issuecomment-1978270396
parent 590e65a7
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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}"
}