Skip to content

Commit

Permalink
lock to fetch package
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jun 17, 2024
1 parent 633da43 commit a298a7d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a298a7d

Please sign in to comment.