diff options
| author | ruki <[email protected]> | 2024-08-29 23:03:07 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-29 23:03:07 +0800 |
| commit | d2476ab94d82b7c2cc1c80b1d1ce81b716b155dc (patch) | |
| tree | fb96b35762131c79739bf25b1e7421be2e10ef4a | |
| parent | 5926c45948cf787bbb437b2c2de1048c3319f21b (diff) | |
| parent | b807fd1865272be457b5f8fe97a0411280d1daaf (diff) | |
Merge pull request #5539 from xmake-io/lock
fix lock packages #5532
| -rw-r--r-- | xmake/modules/private/action/require/impl/install_packages.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua index 38e965ca6..eed6fa0b7 100644 --- a/xmake/modules/private/action/require/impl/install_packages.lua +++ b/xmake/modules/private/action/require/impl/install_packages.lua @@ -810,9 +810,6 @@ function _install_packages(requires, opt) if option.get("upgrade") then _show_upgraded_packages(packages) end - - -- lock packages - lock_packages(packages) return packages end @@ -822,7 +819,12 @@ function main(requires, opt) -- and we will check package toolchains before calling package.on_load -- -- @see https://github.com/xmake-io/xmake/pull/5466 - _install_packages(requires, table.join(opt or {}, {toolchain = true})) - return _install_packages(requires, opt) + local packages = {} + table.join2(packages, _install_packages(requires, table.join(opt or {}, {toolchain = true}))) + table.join2(packages, _install_packages(requires, opt)) + + -- lock packages + lock_packages(packages) + return packages end |
