From ea43975308abc8b5281ac8934657aa4d59bcdd75 Mon Sep 17 00:00:00 2001
From: Hisham Muhammad <hisham@gobolinux.org>
Date: Fri, 16 Feb 2024 18:10:38 -0300
Subject: fix: build_dependencies can use a dependency found anywhere

---
 src/luarocks/build.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua
index 42ae4591..e545d390 100644
--- a/src/luarocks/build.lua
+++ b/src/luarocks/build.lua
@@ -129,7 +129,7 @@ local function process_dependencies(rockspec, opts)
 
    if not opts.build_only_deps then
       if next(rockspec.build_dependencies) then
-         local ok, err, errcode = deps.fulfill_dependencies(rockspec, "build_dependencies", opts.deps_mode, opts.verify)
+         local ok, err, errcode = deps.fulfill_dependencies(rockspec, "build_dependencies", "all", opts.verify)
          if err then
             return nil, err, errcode
          end
-- 
cgit v1.2.3-55-g6feb