We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vim.version
1 parent d5fa4d4 commit f3771daCopy full SHA for f3771da
1 file changed
lua/gitlab/version.lua
@@ -6,13 +6,8 @@ M.is_go_valid = function()
6
return false
7
end
8
9
- local go_version = go:wait().stdout;
10
- local major, minor, _ = go_version:match("(%d+)%.(%d+)%.?(%d*)")
11
- if major and tonumber(major) >= 1 and tonumber(minor) >= 25 then
12
- return true
13
- else
14
- return false
15
- end
+ local go_version = vim.version.parse(go:wait().stdout, { strict = false })
+ return vim.version.ge(go_version, { 1, 25, 0 })
16
17
18
M.check_go_version = function()
0 commit comments