diff options
| author | William Boman <william@redwill.se> | 2022-03-26 19:46:40 +0100 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-03-26 19:46:40 +0100 |
| commit | 5bfae3a9f3d9e6b648e8178bf3b4f4561d0e3e7b (patch) | |
| tree | 3517f941c17171e7373104cca3c09ebb1e8ba535 /lua/nvim-lsp-installer | |
| parent | fix(ui): typo (diff) | |
| download | mason-5bfae3a9f3d9e6b648e8178bf3b4f4561d0e3e7b.tar mason-5bfae3a9f3d9e6b648e8178bf3b4f4561d0e3e7b.tar.gz mason-5bfae3a9f3d9e6b648e8178bf3b4f4561d0e3e7b.tar.bz2 mason-5bfae3a9f3d9e6b648e8178bf3b4f4561d0e3e7b.tar.lz mason-5bfae3a9f3d9e6b648e8178bf3b4f4561d0e3e7b.tar.xz mason-5bfae3a9f3d9e6b648e8178bf3b4f4561d0e3e7b.tar.zst mason-5bfae3a9f3d9e6b648e8178bf3b4f4561d0e3e7b.zip | |
fix(go): specify correct executable when checking version
Diffstat (limited to 'lua/nvim-lsp-installer')
| -rw-r--r-- | lua/nvim-lsp-installer/core/managers/go/init.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-lsp-installer/core/managers/go/init.lua b/lua/nvim-lsp-installer/core/managers/go/init.lua index 167cfff4..908b73cc 100644 --- a/lua/nvim-lsp-installer/core/managers/go/init.lua +++ b/lua/nvim-lsp-installer/core/managers/go/init.lua @@ -1,4 +1,5 @@ local process = require "nvim-lsp-installer.process" +local platform = require "nvim-lsp-installer.platform" local spawn = require "nvim-lsp-installer.core.spawn" local a = require "nvim-lsp-installer.core.async" local Optional = require "nvim-lsp-installer.core.optional" @@ -62,7 +63,7 @@ function M.get_installed_primary_package_version(receipt, install_dir) return spawn.go({ "version", "-m", - executable, + platform.is_win and ("%.exe"):format(executable) or executable, cwd = install_dir, }):map_catching(function(result) local parsed_output = M.parse_mod_version_output(result.stdout) |
