From faa7c7560645fde443ad022214c0bb1fbea6953f Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 19 Feb 2024 18:10:34 -0300 Subject: improve and simplify Lua interpreter search * do not proceed with commands if interpreter is not found * begin retiring LUA_DIR and LUA_BINDIR, and promote LUA as the main way to setup the interpreter location (from which we derive the rest) --- spec/cmd_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/cmd_spec.lua b/spec/cmd_spec.lua index fe27ab1b..5d6e729b 100644 --- a/spec/cmd_spec.lua +++ b/spec/cmd_spec.lua @@ -60,7 +60,7 @@ describe("LuaRocks command line #integration", function() it("warns but continues if given an invalid version", function() local output = run.luarocks("--lua-version=1.0") - assert.match("Warning: Lua 1.0 interpreter not found", output, 1, true) + assert.match("LUA *: %(not found%)", output) assert.match("Version%s*:%s*1.0", output) end) -- cgit v1.2.3-55-g6feb