Skip to content

Commit a939243

Browse files
authored
fix(checker): allow git checks only for non-pinned plugins (#61)
1 parent 57bea32 commit a939243

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lua/lazy/manage/checker.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616

1717
function M.fast_check()
1818
for _, plugin in pairs(Config.plugins) do
19-
if plugin._.installed then
19+
if not plugin.pin and plugin._.installed then
2020
plugin._.has_updates = nil
2121
local info = Git.info(plugin.dir)
2222
local ok, target = pcall(Git.get_target, plugin)

lua/lazy/manage/task/git.lua

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ local M = {}
88
M.log = {
99
---@param opts {updated?:boolean, check?: boolean}
1010
skip = function(plugin, opts)
11+
if opts.check and plugin.pin then
12+
return true
13+
end
1114
if opts.updated and not (plugin._.updated and plugin._.updated.from ~= plugin._.updated.to) then
1215
return true
1316
end

0 commit comments

Comments
 (0)