Skip to content

Cannot install go packages: Tried to link bin #2066

@Universal-Invariant

Description

@Universal-Invariant

I've searched open issues for similar requests

  • Yes

I've recently downloaded the latest plugin version of mason.nvim

  • Yes

Problem description

Trying to update packages gets:

◍ golangci-lint-langserver
  ▶ # [6/6] Tried to link bin "golangci-lint-langserver" to non-existent target "golangci-lint-langserver.exe".
◍ delve
  ▶ # [6/6] Tried to link bin "dlv" to non-existent target "dlv.exe".
◍ gopls
  ▶ # [6/6] Tried to link bin "gopls" to non-existent target "gopls.exe".
◍ goimports
  ▶ # [6/6] Tried to link bin "goimports" to non-existent target "goimports.exe".

Expected behavior

Should work. I have all these installed.

I ran procmon to see what mason was doing and it is looking for the files in a staging subdirectory of it's install directory.

.data\nvim\Lazy\mason\staging

That was the only reference to any of the bin's it's trying to find. I haven't bothered to try to copy the files over or link them to this directory. The only thing in that subdirectory is gradle-language-server.

All files it is looking for are in the home dir:

L:\Programming\go\Home\bin>t
├── dlv.exe (size=21 MiB)
├── gofumpt.exe (size=5.9 MiB)
├── goimpl.exe (size=10 MiB)
├── goimports.exe (size=8.2 MiB)
├── golangci-lint-langserver.exe (size=3.7 MiB)
├── golangci-lint.exe (size=44 MiB)
├── gomodifytags.exe (size=4.2 MiB)
└── gopls.exe (size=40 MiB)

Which is linked by the GOPATH so I'm not sure why Mason isn't using the GOPATH to locate the files.

Affected packages

go

Mason output

◍ golangci-lint-langserver
      ▶ # [6/6] Tried to link bin "golangci-lint-langserver" to non-existent target "golangci-lint-langserver.exe".
    ◍ delve
      ▶ # [6/6] Tried to link bin "dlv" to non-existent target "dlv.exe".
    ◍ gopls
      ▶ # [6/6] Tried to link bin "gopls" to non-existent target "gopls.exe".
    ◍ goimports
      ▶ # [6/6] Tried to link bin "goimports" to non-existent target "goimports.exe".

Installation log

[ERROR 3/15/2026 10:14:59 PM] ...zy/mason.nvim/lua/mason-core/installer/InstallRunner.lua:93: Installation failed for Package(name=goimports) error='Tried to link bin "goimports" to non-existent target "goimports.exe".'

Neovim version (>= 0.10.0)

Latest

Operating system/version

Windows 11

Healthcheck

all pass

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions