summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/import/core/project/cache.lua2
-rw-r--r--xmake/core/sandbox/modules/import/core/project/history.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/sandbox/modules/import/core/project/cache.lua b/xmake/core/sandbox/modules/import/core/project/cache.lua
index 7ae7a4303..4d2879c09 100644
--- a/xmake/core/sandbox/modules/import/core/project/cache.lua
+++ b/xmake/core/sandbox/modules/import/core/project/cache.lua
@@ -22,7 +22,7 @@
-- @file cache.lua
--
--- define module
+-- define module, @note cannot be cached, a new instance in each sandbox module
local sandbox_core_project_cache = {}
-- load modules
diff --git a/xmake/core/sandbox/modules/import/core/project/history.lua b/xmake/core/sandbox/modules/import/core/project/history.lua
index b205afdf9..c19607f88 100644
--- a/xmake/core/sandbox/modules/import/core/project/history.lua
+++ b/xmake/core/sandbox/modules/import/core/project/history.lua
@@ -22,8 +22,8 @@
-- @file history.lua
--
--- define module
-local sandbox_core_project_history = sandbox_core_project_history or {}
+-- define module, @note cannot be cached, a new instance in each sandbox module
+local sandbox_core_project_history = {}
-- load modules
local os = require("base/os")