summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")