summaryrefslogtreecommitdiff
path: root/xmake/core/project/addons.lua
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/core/project/addons.lua
parent05bba8214e630028cba5d5ad9497e0ac7266ab25 (diff)
improve lockfile version
Diffstat (limited to 'xmake/core/project/addons.lua')
-rw-r--r--xmake/core/project/addons.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/core/project/addons.lua b/xmake/core/project/addons.lua
index 64fde05c0..3b105840e 100644
--- a/xmake/core/project/addons.lua
+++ b/xmake/core/project/addons.lua
@@ -56,6 +56,14 @@ function addons.lockfile(projectdir)
return path.join(projectdir or os.projectdir(), "xmake-addons.lock")
end
+-- get the format version of the addons lock file
+--
+-- @see xmake/core/project/project.lua, project.requireslock_version()
+--
+function addons.lockfile_version()
+ return "1.0"
+end
+
-- get the apis of the addons file
--
-- @note it only declares which addons this project needs, the addon resources