diff options
author | leso-kn <info@lesosoftware.com> | 2023-12-05 22:05:55 +0100 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2023-12-11 22:08:13 -0300 |
commit | f4b1deab270a94778e1bd8903ff48387b0ed9fbc (patch) | |
tree | 6fe5b83c0d4e802a92c53b3863c518678bf0e00a | |
parent | aff9d641c60881d9fbb2e86bb5426a38fa4f1a59 (diff) | |
download | luarocks-f4b1deab270a94778e1bd8903ff48387b0ed9fbc.tar.gz luarocks-f4b1deab270a94778e1bd8903ff48387b0ed9fbc.tar.bz2 luarocks-f4b1deab270a94778e1bd8903ff48387b0ed9fbc.zip |
fix: Add value specified via --tree to cfg.rocks_trees (#1549)
* Fixes a crash in `fulfill_dependency()` on musl
-rw-r--r-- | src/luarocks/cmd.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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 | |||
83 | if not named then | 83 | if not named then |
84 | local root_dir = fs.absolute_name(args.tree) | 84 | local root_dir = fs.absolute_name(args.tree) |
85 | replace_tree(args, root_dir) | 85 | replace_tree(args, root_dir) |
86 | if (args.deps_mode or cfg.deps_mode) ~= "order" then | ||
87 | table.insert(cfg.rocks_trees, 1, { name = "arg", root = root_dir } ) | ||
88 | end | ||
86 | end | 89 | end |
87 | elseif args["local"] then | 90 | elseif args["local"] then |
88 | if fs.is_superuser() then | 91 | if fs.is_superuser() then |