fix: don't check updates for local plugins

This commit is contained in:
AThePeanut4 2024-06-10 03:02:07 +02:00
commit 9de0eedb3e
No known key found for this signature in database
GPG key ID: 52218D91FC13009D
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ end
function M.fast_check(opts) function M.fast_check(opts)
opts = opts or {} opts = opts or {}
for _, plugin in pairs(Config.plugins) do for _, plugin in pairs(Config.plugins) do
if not plugin.pin and not plugin.dev and plugin._.installed then if plugin._.installed and not (plugin.pin or plugin._.is_local) then
plugin._.updates = nil plugin._.updates = nil
local info = Git.info(plugin.dir) local info = Git.info(plugin.dir)
local ok, target = pcall(Git.get_target, plugin) local ok, target = pcall(Git.get_target, plugin)

View file

@ -9,7 +9,7 @@ local M = {}
M.log = { M.log = {
---@param opts {updated?:boolean, check?: boolean} ---@param opts {updated?:boolean, check?: boolean}
skip = function(plugin, opts) skip = function(plugin, opts)
if opts.check and plugin.pin then if opts.check and (plugin.pin or plugin._.is_local) then
return true return true
end end
if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then