summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-26 00:43:18 +0800
committerruki <[email protected]>2022-10-26 00:43:18 +0800
commitd40e9406911279e9182e4605b3565aef7e225ddb (patch)
treed3f196b1f32875294e1df0a666c91ad6aa020e74
parente86d737ed8e8ac02bb584c6fbc6ad0fe0c69ca36 (diff)
to package name
-rw-r--r--xmake/core/project/package.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/project/package.lua b/xmake/core/project/package.lua
index 5db816e29..7181480c4 100644
--- a/xmake/core/project/package.lua
+++ b/xmake/core/project/package.lua
@@ -256,6 +256,12 @@ function _instance:_sort_componentdeps(name)
return orderdeps
end
+-- we need sort package set keys by this string
+-- @see https://github.com/xmake-io/xmake/pull/2971#issuecomment-1290052169
+function _instance:__tostring()
+ return "<package: " .. self:name() .. ">"
+end
+
-- get cache
function package._cache()
return localcache.cache("package")