From 8f64eafaf75576c6f7d7b946df52880e3942c2b0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 16 Jan 2021 00:24:06 +0100 Subject: core.modulemanager: Fix resource location compat with LuaRocks 2.x The path doesn't include lua version, at least least on Debian, which still has luarocks 2.x --- core/modulemanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/modulemanager.lua') diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 3f4233e6..9d2a74c7 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -209,7 +209,7 @@ local function do_load_module(host, module_name, state) if not load_manifest then -- COMPAT Luarocks 2.x log("debug", "Could not load LuaRocks 3.x manifest, trying 2.x", err); - luarocks_path = custom_plugins.."/lib/luarocks/rocks-"..lua_version; + luarocks_path = custom_plugins.."/lib/luarocks/rocks"; manifest_filename = luarocks_path.."/manifest"; load_manifest, err = envload.envloadfile(manifest_filename, manifest); end -- cgit v1.2.3