File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -749,7 +749,18 @@ function _instance:cachedir()
749
749
if not cachedir then
750
750
cachedir = self :get (" cachedir" )
751
751
if not cachedir then
752
- local name = self :name ():lower ():gsub (" ::" , " _" )
752
+ -- we need to use displayname (with package id) to avoid
753
+ -- multiple processes accessing it at the same time.
754
+ --
755
+ -- @see https://github.com/libbpf/libbpf-bootstrap/pull/259#issuecomment-1994914188
756
+ --
757
+ -- e.g.
758
+ --
759
+ -- lock elfutils#1 /home/runner/.xmake/cache/packages/2403/e/elfutils/0.189
760
+ -- lock elfutils /home/runner/.xmake/cache/packages/2403/e/elfutils/0.189
761
+ -- package(elfutils) is being accessed by other processes, please wait!
762
+ --
763
+ local name = self :displayname ():lower ():gsub (" ::" , " _" ):gsub (" #" , " _" )
753
764
local version_str = self :version_str ()
754
765
if self :is_thirdparty () then
755
766
-- strip `>= <=`
You can’t perform that action at this time.
0 commit comments