diff options
| author | ruki <[email protected]> | 2026-08-15 10:38:51 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-08-15 10:38:51 +0800 |
| commit | e4314dc3b2f483ef97b397ed5cf11fcdd397c9a0 (patch) | |
| tree | a28db860b0f7af1a5a66bf2ed29c87126a29324a /xmake/modules/private/action/require/impl/actions/install.lua | |
| parent | 6c246c12a09524780e5bfdc53bc27a892e4793a9 (diff) | |
| parent | 045ce8a7a62e38357af0fd250675f279f14beafe (diff) | |
Merge pull request #7702 from xmake-io/preload
Auto fetch addons
Diffstat (limited to 'xmake/modules/private/action/require/impl/actions/install.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/install.lua | 4 |
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..7ddb66cca 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/action/addon/impl/install_addons.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 |
