Skip to content

Commit c2dc072

Browse files
committed
fix(update): ignore rocks with pin = true
1 parent b3299d9 commit c2dc072

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lua/rocks-git/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ rocks_git.get_update_callbacks = nio.create(function(mut_rocks_toml)
206206
:map(mk_package)
207207
---@param pkg Package
208208
:filter(function(pkg)
209-
return pkg.rev == nil or git.is_outdated(pkg)
209+
return pkg.pin ~= true and (pkg.rev == nil or git.is_outdated(pkg))
210210
end)
211211
:map(function(pkg)
212212
---@cast pkg Package

0 commit comments

Comments
 (0)