summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2024-10-11 00:55:26 +0800
committerruki <[email protected]>2024-10-11 00:55:26 +0800
commitd023f3501a95bcd2c7475b578bed7585d8ed60d3 (patch)
tree8471660ffd078779e04ba09c2a67ae178e1eb65e /xmake/modules
parentc189bb54bc616f219d7881c032a207fdaa385a17 (diff)
rename to strhash
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/private/action/require/impl/repository.lua2
-rw-r--r--xmake/modules/private/action/require/impl/utils/requirekey.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/action/require/impl/repository.lua b/xmake/modules/private/action/require/impl/repository.lua
index 001d2ec0a..74b97efda 100644
--- a/xmake/modules/private/action/require/impl/repository.lua
+++ b/xmake/modules/private/action/require/impl/repository.lua
@@ -38,7 +38,7 @@ function _get_packagedir_from_locked_repo(packagename, locked_repo)
break
end
end
- local reponame = hash.hash128(locked_repo.url .. (locked_repo.commit or "")) .. ".lock"
+ local reponame = hash.strhash128(locked_repo.url .. (locked_repo.commit or "")) .. ".lock"
-- get local repodir
local repodir_local
diff --git a/xmake/modules/private/action/require/impl/utils/requirekey.lua b/xmake/modules/private/action/require/impl/utils/requirekey.lua
index a8f435cdf..13d31cd3a 100644
--- a/xmake/modules/private/action/require/impl/utils/requirekey.lua
+++ b/xmake/modules/private/action/require/impl/utils/requirekey.lua
@@ -78,7 +78,7 @@ function main(requireinfo, opt)
if key == "" then
key = "_" -- we need to generate a fixed hash value
end
- return hash.hash32(key)
+ return hash.strhash32(key)
else
return key
end