From 971c5935442938e707db3d0ecccdb1af90c42c2d Mon Sep 17 00:00:00 2001 From: Jiarong Deng Date: Sat, 18 Dec 2021 16:39:06 +0800 Subject: fix(health): ignore the patch number in capturing go version (#343) --- lua/nvim-lsp-installer/health/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') 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." -- cgit v1.2.3-70-g09d2