From 46d620d3cc1b9c97f505a5e0459418672c383de0 Mon Sep 17 00:00:00 2001 From: garret Date: Fri, 18 Nov 2022 02:11:04 +0000 Subject: initial test of depctrl "hijacking" --- l0/DependencyControl.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 l0/DependencyControl.lua (limited to 'l0') diff --git a/l0/DependencyControl.lua b/l0/DependencyControl.lua new file mode 100644 index 0000000..4d188df --- /dev/null +++ b/l0/DependencyControl.lua @@ -0,0 +1,13 @@ +local inspect = require "inspect" + +local noop = function() end + +local function get_version_record(i) + local f = io.open("version", "w") + f:write(inspect(i)) + f:flush() + f:close() + return { requireModules = noop, registerMacro = noop, registerMacros = noop } +end + +return get_version_record -- cgit v1.2.3-70-g09d2