diff options
| author | ShifftC <[email protected]> | 2025-05-06 22:03:55 +0200 |
|---|---|---|
| committer | ShifftC <[email protected]> | 2025-05-06 22:44:30 +0200 |
| commit | 3e5b5fb81e145a98246480492bec06ccc3de74bd (patch) | |
| tree | 17a652d7a07661e8a0d38de2fc2febb75f17d556 /xmake/plugins/plugin | |
| parent | ea13d87b271fbfe6ec96b90cb6b315220f4c53e9 (diff) | |
plugin: handle custom git url syntax
Diffstat (limited to 'xmake/plugins/plugin')
| -rw-r--r-- | xmake/plugins/plugin/main.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/plugins/plugin/main.lua b/xmake/plugins/plugin/main.lua index 915439ae8..a5a7f9ad0 100644 --- a/xmake/plugins/plugin/main.lua +++ b/xmake/plugins/plugin/main.lua @@ -28,7 +28,13 @@ import("private.action.require.impl.environment") -- get plugin urls function _plugin_urls() local urls = option.get("plugins") - if not urls then + if urls then + local result = {} + for _, url in ipairs(urls) do + table.insert(result, git.asgiturl(url) or url) + end + urls = result + else urls = { "https://github.com/xmake-io/xmake-plugins.git", "https://gitlab.com/tboox/xmake-plugins.git", |
