diff options
| author | ruki <[email protected]> | 2021-04-06 23:15:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-04-06 23:15:26 +0800 |
| commit | 8b41be4b0f8fa86168a9f6d9d74abdf8f0fa3660 (patch) | |
| tree | 0f0c4ee0b59b37e716bcd9af6b1862730027bc65 | |
| parent | 5b32ed01ad055b627d098eada08c78707f4c0973 (diff) | |
improve git env
| -rw-r--r-- | xmake/modules/private/action/require/impl/environment.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/environment.lua b/xmake/modules/private/action/require/impl/environment.lua index caceefb48..ae6950de3 100644 --- a/xmake/modules/private/action/require/impl/environment.lua +++ b/xmake/modules/private/action/require/impl/environment.lua @@ -44,11 +44,13 @@ function enter() local packages = {} if not find_tool("git") then table.join2(packages, install_packages("git")) + find_tool("git", {force = true}) -- we need force to detect and flush detect cache end -- missing the necessary unarchivers for *.gz, *.7z? install them first, e.g. gzip, 7z, tar .. if not ((find_tool("gzip") and find_tool("tar")) or find_tool("7z")) then table.join2(packages, install_packages("7z")) + find_tool("7z", {force = true}) end -- enter the environments of installed packages |
