ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
2.05k stars 123 forks source link

Installation failed in `gvm` environment #437

Closed MaiLunJiye closed 6 months ago

MaiLunJiye commented 6 months ago

image

config:

    {
        "ray-x/go.nvim",
        dependencies = {  -- optional packages
            "ray-x/guihua.lua",
            "neovim/nvim-lspconfig",
            "nvim-treesitter/nvim-treesitter"
        },
        config = function()
            require("go").setup()
        end,
        event = {"CmdlineEnter"},
        ft = {"go", 'gomod'},
        build = ':lua require("go.install").update_all_sync()' -- if you need to install/update all binaries
    },

gvm :

Go Version Manager v1.0.22 installed at /home/xxxxxx/.gvm

image image image

ray-x commented 6 months ago

ATM only the latest version of go tools will be installed. From the error log, the issue is go1.19 does not compile golangci latest version (which reference slices) I think you might need to switch to a more recent go version to install the tools. After that, you can switch back to 1.19.