Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lua/lazy/manage/task/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local Async = require("lazy.async")
local Config = require("lazy.core.config")
local Git = require("lazy.manage.git")
local Lock = require("lazy.manage.lock")
local Semver = require("lazy.manage.semver")
local Util = require("lazy.util")

local throttle = {}
Expand Down Expand Up @@ -100,6 +101,13 @@ M.log = {
self.plugin._.outdated = true
end
end
if Config.options.checker.check_tags and self.plugin and target.tag then
local latest = Semver.last(Git.get_versions(self.plugin.dir, "*"))
if latest and target.tag ~= latest.tag then
self.plugin._.outdated = true
-- vim.print(target.tag .. " -> " .. latest.tag)
end
end
else
self.plugin._.updates = { from = info, to = target }
end
Expand Down
Loading