From f6209048f15c2322f986e669fa557d8ef67fa5ec Mon Sep 17 00:00:00 2001 From: Squibid Date: Wed, 2 Jul 2025 21:07:04 -0400 Subject: [PATCH] Revert "use the correct_spec function to handle dependencies and requirements" This reverts commit 318a86d7869025faedbf4d7ce717b91e07939b5d. --- lua/dep/spec.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/dep/spec.lua b/lua/dep/spec.lua index 674aa71..e7b1d9d 100644 --- a/lua/dep/spec.lua +++ b/lua/dep/spec.lua @@ -184,7 +184,10 @@ function spec:check(silent) return false end - self.reqs = spec.correct_spec(self.reqs) + -- turn an id into a spec + if (is == "string") then + self.reqs = { self.reqs } + end end if self.deps ~= nil then -- spec.deps @@ -194,7 +197,10 @@ function spec:check(silent) return false end - self.deps = spec.correct_spec(self.deps) + -- turn an id into a spec + if (is == "string") then + self.deps = { self.deps } + end end if silent == true then