Skip to content

Commit c389ad5

Browse files
committed
fix(spec): dont complain about an invalid short url, when a full url is set. Fixes #421
1 parent 813fc94 commit c389ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/core/plugin.lua

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

0 commit comments

Comments
 (0)