Skip to content

Commit 957d6dc

Browse files
committed
Don't print go: command not found when Neovim is starting
1 parent 2295d1e commit 957d6dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/gitlab/version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
local M = {}
22

33
M.is_go_valid = function()
4-
local go_version = io.popen("go version"):read("*a")
4+
local go_version = io.popen("go version 2>&1"):read("*a")
55
if go_version then
66
local major, minor, _ = go_version:match("(%d+)%.(%d+)%.?(%d*)")
77
if major and tonumber(major) >= 1 and tonumber(minor) >= 25 then

0 commit comments

Comments
 (0)