aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorJiarong Deng <alienover.l.d@gmail.com>2021-12-18 16:39:06 +0800
committerGitHub <noreply@github.com>2021-12-18 09:39:06 +0100
commit971c5935442938e707db3d0ecccdb1af90c42c2d (patch)
tree9289c0634b365594ecef09ddebe5cf40c436ab82 /lua
parentfix(sumneko_lua): (breaking) support new archive structure (#341) (diff)
downloadmason-971c5935442938e707db3d0ecccdb1af90c42c2d.tar
mason-971c5935442938e707db3d0ecccdb1af90c42c2d.tar.gz
mason-971c5935442938e707db3d0ecccdb1af90c42c2d.tar.bz2
mason-971c5935442938e707db3d0ecccdb1af90c42c2d.tar.lz
mason-971c5935442938e707db3d0ecccdb1af90c42c2d.tar.xz
mason-971c5935442938e707db3d0ecccdb1af90c42c2d.tar.zst
mason-971c5935442938e707db3d0ecccdb1af90c42c2d.zip
fix(health): ignore the patch number in capturing go version (#343)
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/health/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/health/init.lua b/lua/nvim-lsp-installer/health/init.lua
index 8fed9b75..6af53e77 100644
--- a/lua/nvim-lsp-installer/health/init.lua
+++ b/lua/nvim-lsp-installer/health/init.lua
@@ -106,7 +106,7 @@ function M.check()
name = "Go",
check = function(version)
-- Parses output such as "go version go1.17.3 darwin/arm64" into major, minor, patch components
- local _, _, major, minor = version:find "go(%d+)%.(%d+)%.(%d+)"
+ local _, _, major, minor = version:find "go(%d+)%.(%d+)"
-- Due to https://go.dev/doc/go-get-install-deprecation
if not (tonumber(major) >= 1 and tonumber(minor) >= 17) then
return "Go version must be >= 1.17."