From ad079f7ffb33b0478e6806be77592ee7a91e1823 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 21 Aug 2021 23:10:14 +0800 Subject: fix repo --- xmake/modules/private/action/require/impl/repository.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/modules/private/action/require/impl/repository.lua b/xmake/modules/private/action/require/impl/repository.lua index 4f1e44f27..80a69b41e 100644 --- a/xmake/modules/private/action/require/impl/repository.lua +++ b/xmake/modules/private/action/require/impl/repository.lua @@ -158,7 +158,8 @@ function packagedir(packagename, opt) end end end - packagedirs[cachekey] = foundir or {} + foundir = foundir or {} + packagedirs[cachekey] = foundir end -- save the current commit -- cgit v1.3.1