summaryrefslogtreecommitdiff
path: root/xmake/core/project/requireinfo.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-01 21:02:28 +0800
committerruki <[email protected]>2021-01-01 21:02:28 +0800
commite1e70e4d1867f92f5591e7dd068ca13819955ed4 (patch)
tree9c4ddbf7c91099b36def727dd578188fc53b4da4 /xmake/core/project/requireinfo.lua
parent99126a6271f7ed8a4712d5cd5c060210090b8d1c (diff)
add after_load to add_requires
Diffstat (limited to 'xmake/core/project/requireinfo.lua')
-rw-r--r--xmake/core/project/requireinfo.lua19
1 files changed, 0 insertions, 19 deletions
diff --git a/xmake/core/project/requireinfo.lua b/xmake/core/project/requireinfo.lua
index 205b7f6e9..0c90e6fb5 100644
--- a/xmake/core/project/requireinfo.lua
+++ b/xmake/core/project/requireinfo.lua
@@ -39,20 +39,6 @@ end
-- save the requires info to the cache
function requireinfo:save()
-
- -- To ensure that the full information (version, ..) is obtained, delay loading it
- if not self._LOADED then
- local on_load = self:script("on_load")
- if on_load then
- local ok, errors = sandbox.load(on_load, self)
- if not ok then
- os.raise(errors)
- end
- end
- self._LOADED = true
- end
-
- -- save it
requireinfo._cache():set(self:name(), self._INFO)
requireinfo._cache():save()
end
@@ -84,11 +70,6 @@ function requireinfo:name()
return self._NAME
end
--- get the given script
-function requireinfo:script(name)
- return self._SCRIPTS and self._SCRIPTS[name] or nil
-end
-
-- get the package version
function requireinfo:version()