aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbinary/all_in_one2
-rw-r--r--src/luarocks/cmd.lua7
2 files changed, 7 insertions, 2 deletions
diff --git a/binary/all_in_one b/binary/all_in_one
index 63c6ef98..ca5ee49d 100755
--- a/binary/all_in_one
+++ b/binary/all_in_one
@@ -481,7 +481,7 @@ local function main()
481 print("----------------------------------------------------------------") 481 print("----------------------------------------------------------------")
482 local vers = manif.get_versions(queries.from_dep_string(name), "one") 482 local vers = manif.get_versions(queries.from_dep_string(name), "one")
483 if not next(vers) then 483 if not next(vers) then
484 local ok = os.execute("LUAROCKS_CONFIG='" .. CONFIG_FILE .. "' ./luarocks install '--tree=" .. LUA_MODULES .. "' " .. arg) 484 local ok = os.execute("LUAROCKS_CONFIG='" .. CONFIG_FILE .. "' ./luarocks install --no-project '--tree=" .. LUA_MODULES .. "' " .. arg)
485 if ok ~= 0 and ok ~= true then 485 if ok ~= 0 and ok ~= true then
486 error("Failed building dependency: " .. name) 486 error("Failed building dependency: " .. name)
487 end 487 end
diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua
index 962d9256..3abad789 100644
--- a/src/luarocks/cmd.lua
+++ b/src/luarocks/cmd.lua
@@ -293,7 +293,11 @@ do
293 end 293 end
294 294
295 detect_config_via_args = function(args) 295 detect_config_via_args = function(args)
296 local project_dir, given = find_project_dir(args.project_tree) 296 local project_dir, given
297 if not args.no_project then
298 project_dir, given = find_project_dir(args.project_tree)
299 end
300
297 local detected = detect_lua_via_args(args, project_dir) 301 local detected = detect_lua_via_args(args, project_dir)
298 if args.lua_version then 302 if args.lua_version then
299 detected.given_lua_version = args.lua_version 303 detected.given_lua_version = args.lua_version
@@ -469,6 +473,7 @@ Enabling completion for Fish:
469 parser:flag("--local", "Use the tree in the user's home directory.\n".. 473 parser:flag("--local", "Use the tree in the user's home directory.\n"..
470 "To enable it, see '"..program.." help path'.") 474 "To enable it, see '"..program.." help path'.")
471 parser:flag("--global", "Use the system tree when `local_by_default` is `true`.") 475 parser:flag("--global", "Use the system tree when `local_by_default` is `true`.")
476 parser:flag("--no-project", "Do not use project tree even if running from a project folder.")
472 parser:flag("--verbose", "Display verbose output of commands executed.") 477 parser:flag("--verbose", "Display verbose output of commands executed.")
473 parser:option("--timeout", "Timeout on network operations, in seconds.\n".. 478 parser:option("--timeout", "Timeout on network operations, in seconds.\n"..
474 "0 means no timeout (wait forever). Default is ".. 479 "0 means no timeout (wait forever). Default is "..