diff options
| author | Ângelo Andrade Cirino <[email protected]> | 2022-01-17 10:56:56 -0300 |
|---|---|---|
| committer | Ângelo Andrade Cirino <[email protected]> | 2022-01-17 10:56:56 -0300 |
| commit | 92978c6f56ab66e17e19776d2e35832fa8be6e97 (patch) | |
| tree | 8156c9043b20682df56ee30f673ac84a2c042eeb /xmake/modules/private/action/require/fetch.lua | |
| parent | 274244bf3530a77ab3c93309e5ea5bb5d29907ae (diff) | |
| parent | b86e3b25723812bdf0c20bc1d3d4075d47b57523 (diff) | |
Merge branch 'master' of https://github.com/xmake-io/xmake into modnamefix
Diffstat (limited to 'xmake/modules/private/action/require/fetch.lua')
| -rw-r--r-- | xmake/modules/private/action/require/fetch.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/fetch.lua b/xmake/modules/private/action/require/fetch.lua index e64b7f0b0..01a5bf5ab 100644 --- a/xmake/modules/private/action/require/fetch.lua +++ b/xmake/modules/private/action/require/fetch.lua @@ -21,6 +21,7 @@ -- imports import("core.base.option") import("core.base.hashset") +import("core.base.json") import("core.project.project") import("core.package.package", {alias = "core_package"}) import("core.tool.linker") @@ -86,6 +87,8 @@ function main(requires_raw) end if #flags > 0 then print(os.args(flags)) + elseif fetchmodes and fetchmodes:has("json") then + print(json.encode(fetchinfos)) else print(fetchinfos) end |
