From 9c5edf13c2e6bd5223eebfeb4557ccc841acaa0e Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 12 May 2023 01:55:39 +0200 Subject: fix(sources): don't skip installation if fixed version is not currently installed (#1297) --- lua/mason-registry/sources/github.lua | 4 ++-- 1 file 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 -- cgit v1.2.3-70-g09d2