fix(spec): dont complain about an invalid short url, when a full url is set. Fixes #421

This commit is contained in:
Folke Lemaitre 2023-01-18 08:31:55 +01:00
parent 813fc944d7
commit c389ad552b
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ function Spec:add(plugin, results, is_dep)
plugin.dependencies = plugin.dependencies and self:normalize(plugin.dependencies, {}, true) or nil
if self.plugins[plugin.name] then
plugin = self:merge(self.plugins[plugin.name], plugin)
elseif is_ref then
elseif is_ref and not plugin.url then
self:error("Plugin spec for **" .. plugin.name .. "** not found.\n```lua\n" .. vim.inspect(plugin) .. "\n```")
return
end