summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/actions/install.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-14 23:42:13 +0800
committerruki <[email protected]>2026-08-14 23:42:13 +0800
commit46141dbac176444bd1ed114ea419d4bb8e6d2e13 (patch)
tree5bb62ecf325bd4d42bcedd2440a35dddada97c57 /xmake/modules/private/action/require/impl/actions/install.lua
parenta79cf74f920c088528d66a67a59b3d8eaa1d4f7a (diff)
update lock and version
Diffstat (limited to 'xmake/modules/private/action/require/impl/actions/install.lua')
-rw-r--r--xmake/modules/private/action/require/impl/actions/install.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua
index 65750c1bc..1a2e389b3 100644
--- a/xmake/modules/private/action/require/impl/actions/install.lua
+++ b/xmake/modules/private/action/require/impl/actions/install.lua
@@ -318,8 +318,12 @@ function _register_addon(package)
end
end
+ -- we also record where it comes from, so that the projects can lock it,
+ -- @see xmake/modules/private/addons/main.lua
+ local repo = package:repo()
addon.register(package:name(), package:version_str() or "latest",
{description = description, deps = deps,
+ repo = repo and {url = repo:url(), commit = repo:commit(), branch = repo:branch()} or nil,
manifest_deps = manifest and manifest.deps or nil,
globalmodules = manifest and #manifest.globalmodules > 0 and manifest.globalmodules or nil})
end