aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-05-12 01:55:39 +0200
committerGitHub <noreply@github.com>2023-05-11 23:55:39 +0000
commit9c5edf13c2e6bd5223eebfeb4557ccc841acaa0e (patch)
treeaa0cd4d9cbdcc6e596540e25411f36900db4572f /lua/mason-registry
parentchore(health): include path and providers settings (#1294) (diff)
downloadmason-9c5edf13c2e6bd5223eebfeb4557ccc841acaa0e.tar
mason-9c5edf13c2e6bd5223eebfeb4557ccc841acaa0e.tar.gz
mason-9c5edf13c2e6bd5223eebfeb4557ccc841acaa0e.tar.bz2
mason-9c5edf13c2e6bd5223eebfeb4557ccc841acaa0e.tar.lz
mason-9c5edf13c2e6bd5223eebfeb4557ccc841acaa0e.tar.xz
mason-9c5edf13c2e6bd5223eebfeb4557ccc841acaa0e.tar.zst
mason-9c5edf13c2e6bd5223eebfeb4557ccc841acaa0e.zip
fix(sources): don't skip installation if fixed version is not currently installed (#1297)
Diffstat (limited to 'lua/mason-registry')
-rw-r--r--lua/mason-registry/sources/github.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/mason-registry/sources/github.lua b/lua/mason-registry/sources/github.lua
index 2e9c5210..833c5ba1 100644
--- a/lua/mason-registry/sources/github.lua
+++ b/lua/mason-registry/sources/github.lua
@@ -123,8 +123,8 @@ function GitHubRegistrySource:install()
return Result.try(function(try)
local version = self.spec.version
- if self:is_installed() and version ~= nil then
- -- Fixed version - nothing to update
+ if self:is_installed() and self:get_info().version == version then
+ -- Fixed version is already installed - nothing to update
return
end