Changeset

11287:b602dd3c4bbc

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
author Kim Alvefur <zash@zash.se>
date Sat, 16 Jan 2021 00:24:06 +0100
parents 11286:336cba957c88
children 11288:5fd1f1b544a0
files core/modulemanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/modulemanager.lua	Fri Jan 15 18:42:45 2021 +0000
+++ b/core/modulemanager.lua	Sat Jan 16 00:24:06 2021 +0100
@@ -209,7 +209,7 @@
 		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