Skip to content

Commit

Permalink
Merge pull request #5539 from xmake-io/lock
Browse files Browse the repository at this point in the history
fix lock packages #5532
  • Loading branch information
waruqi authored Aug 29, 2024
2 parents 5926c45 + b807fd1 commit d2476ab
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions xmake/modules/private/action/require/impl/install_packages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit d2476ab

Please sign in to comment.