summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-06-19 17:46:49 +0800
committerGitHub <[email protected]>2023-06-19 17:46:49 +0800
commitaf4101f01eab345505f323c7901b902d28ed0715 (patch)
tree61259d3441204e6dde206269c095e984857cb32b
parent31aa909e86dd97d47dbe03c98662742dd21308bd (diff)
parent3d157d95b1ecea7283e23a590510d4289127eb83 (diff)
Merge pull request #3865 from heheda123123/patch-3
add readonly flag in xrepo info results
-rw-r--r--xmake/modules/private/action/require/info.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/info.lua b/xmake/modules/private/action/require/info.lua
index fb6414a17..471e00bea 100644
--- a/xmake/modules/private/action/require/info.lua
+++ b/xmake/modules/private/action/require/info.lua
@@ -235,6 +235,11 @@ function main(requires_raw)
elseif configs_extra.type ~= nil and configs_extra.type ~= "string" then
printf(" (type: %s)", configs_extra.type)
end
+
+ if configs_extra.readonly ~= nil then
+ printf(" (readonly)")
+ end
+
print("")
if configs_extra.values then
cprint(" -> values: %s", string.serialize(configs_extra.values, true))