diff options
| -rw-r--r-- | xmake/modules/private/action/require/impl/repository.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
