diff options
| author | ruki <[email protected]> | 2024-06-18 00:44:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-06-18 00:44:25 +0800 |
| commit | a298a7d889ff0c86122ca7c9c358f24ce5651cf3 (patch) | |
| tree | b01837b588b740fbf5786971945066e30bf15039 | |
| parent | 633da436212d9c44bd58854b45a7c23ebc7d9d50 (diff) | |
lock to fetch package
| -rw-r--r-- | xmake/modules/private/action/require/impl/install_packages.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua index f7fb2e4ee..14dd87e33 100644 --- a/xmake/modules/private/action/require/impl/install_packages.lua +++ b/xmake/modules/private/action/require/impl/install_packages.lua @@ -331,7 +331,9 @@ function _fetch_packages(packages_fetch, installdeps) packages_fetching[index] = instance local oldenvs = os.getenvs() instance:envs_enter() + instance:lock() instance:fetch() + instance:unlock() os.setenvs(oldenvs) -- fix terminal mode to avoid some subprocess to change it |
