From 76a0e7bdf45c0fc03e1168f7cdfef62acea1e4f0 Mon Sep 17 00:00:00 2001 From: ray-x Date: Wed, 1 Feb 2023 08:28:06 +1100 Subject: [PATCH] fix pipeline failure --- ftplugin/go.vim | 2 -- lua/go/asyncmake.lua | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ftplugin/go.vim b/ftplugin/go.vim index 548e49e..ed480af 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -11,6 +11,4 @@ setlocal commentstring=//\ %s setlocal noexpandtab -compiler go - " vim: sw=2 ts=2 et diff --git a/lua/go/asyncmake.lua b/lua/go/asyncmake.lua index 95e646d..4bff834 100644 --- a/lua/go/asyncmake.lua +++ b/lua/go/asyncmake.lua @@ -41,6 +41,9 @@ function M.make(...) local optarg, _, reminder = getopt.get_opts(args, short_opts, long_opts) log(makeprg, args, short_opts, optarg, reminder) + if vim.fn.empty(makeprg) == 0 and args[1] == 'go' then + vim.notify('makeprg is already set to ' .. makeprg .. ' args: '.. vim.inspect(args), vim.lsp.log_levels.WARN) + end -- local indent = "%\\%( %\\)" if not makeprg then log("makeprog not setup")