summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxq114 <[email protected]>2023-02-23 19:48:25 +0800
committerxq114 <[email protected]>2023-02-23 19:48:25 +0800
commit19c40899499596d33b7edb8600c0fe8ddbfb43fd (patch)
tree3be4213f82db83b73e783d37e5dcc73a1374975a
parent9a63f4f86064a047bfb3e4003ff71627d52e6efa (diff)
add github name to info
-rw-r--r--xmake/modules/private/action/require/info.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/info.lua b/xmake/modules/private/action/require/info.lua
index 8d140a7da..42c3ad9c5 100644
--- a/xmake/modules/private/action/require/info.lua
+++ b/xmake/modules/private/action/require/info.lua
@@ -163,6 +163,12 @@ function main(requires_raw)
searchnames:insert(instance:name() .. "-" .. instance:version_str() .. extension)
end
searchnames:insert(url_filename(url))
+
+ -- match github name mangling https://github.com/xmake-io/xmake/issues/1343
+ local github_name = url_filename.github_filename(url)
+ if github_name then
+ searchnames:insert(github_name)
+ end
end
end
cprint(" -> ${color.dump.string_quote}searchnames${clear}: %s", table.concat(searchnames:to_array(), ", "))