summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-15 00:36:28 +0800
committerruki <[email protected]>2026-08-15 00:36:28 +0800
commitfe6b792385a0b56716d703be3fd024380e1baea0 (patch)
tree12e7e3063c9e33d0aa0e5ebf47d57e093cdf5dd9 /xmake/modules
parent05bba8214e630028cba5d5ad9497e0ac7266ab25 (diff)
improve lockfile version
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/action/addon/impl/install_addons.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/modules/private/action/addon/impl/install_addons.lua b/xmake/modules/private/action/addon/impl/install_addons.lua
index 02bb87e2f..a20ed740b 100644
--- a/xmake/modules/private/action/addon/impl/install_addons.lua
+++ b/xmake/modules/private/action/addon/impl/install_addons.lua
@@ -23,9 +23,6 @@ import("core.package.addon")
import("core.project.addons")
import("private.action.addon.impl.xrepo", {alias = "xrepo_addon"})
--- the format version of the addons lock file
-local LOCKVERSION = "1.0"
-
-- get the requires of the declared addons
--
-- @note we install the locked versions, but the declaration is authoritative, so we
@@ -67,7 +64,7 @@ function _lock_addons(projectdir, addonsinfo)
lockinfo[name] = {version = addoninfo.version, repo = addoninfo.repo}
end
end
- lockinfo.__meta__ = {version = LOCKVERSION}
+ lockinfo.__meta__ = {version = addons.lockfile_version()}
-- @note we need to write it deterministically, the key order of a lua table is random,
-- otherwise the lock file would change even if nothing changed,