summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/lock_packages.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-08-18 00:54:38 +0800
committerruki <[email protected]>2021-08-18 00:54:38 +0800
commitcfcd21ce456c3597573dd2f2324b236d4a84fcdd (patch)
tree3980fab6583b2f718fd232030c03a2a9ebe98055 /xmake/modules/private/action/require/impl/lock_packages.lua
parent723dca1ac294cccd66f5b3dd0661299fd197f476 (diff)
lock version
Diffstat (limited to 'xmake/modules/private/action/require/impl/lock_packages.lua')
-rw-r--r--xmake/modules/private/action/require/impl/lock_packages.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/lock_packages.lua b/xmake/modules/private/action/require/impl/lock_packages.lua
index 7640e7562..e11916db6 100644
--- a/xmake/modules/private/action/require/impl/lock_packages.lua
+++ b/xmake/modules/private/action/require/impl/lock_packages.lua
@@ -46,6 +46,8 @@ function _lock_package(instance)
result.version = instance:version_str()
result.buildhash = instance:buildhash()
result.is_built = instance:is_built()
+ result.branch = instance:branch()
+ result.tag = instance:tag()
if repo then
local lastcommit = git.lastcommit({repodir = repo:directory()})
result.repo = repo:url() .. "#" .. lastcommit