From f4b1deab270a94778e1bd8903ff48387b0ed9fbc Mon Sep 17 00:00:00 2001 From: leso-kn Date: Tue, 5 Dec 2023 22:05:55 +0100 Subject: fix: Add value specified via --tree to cfg.rocks_trees (#1549) * Fixes a crash in `fulfill_dependency()` on musl --- src/luarocks/cmd.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index f1446df4..ca79c316 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua @@ -83,6 +83,9 @@ do if not named then local root_dir = fs.absolute_name(args.tree) replace_tree(args, root_dir) + if (args.deps_mode or cfg.deps_mode) ~= "order" then + table.insert(cfg.rocks_trees, 1, { name = "arg", root = root_dir } ) + end end elseif args["local"] then if fs.is_superuser() then -- cgit v1.2.3-55-g6feb