# 使用 Homebrew, Nix 安装 golangci-lint-langserver

查看 golangci-lint-langserver 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:golangci-lint-langserver
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install golangci-lint-langserver
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#golangci-lint-langserver
```

  证据: nixpkgs package indexes: pkgs/by-name/go/golangci-lint-langserver/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:golangci-lint-langserver
- **软件包管理器:** Homebrew
- **版本:** 0.0.12
- **来源摘要:** Language server for golangci-lint
- **主页:** <https://github.com/nametake/golangci-lint-langserver>
- **仓库:** <https://github.com/nametake/golangci-lint-langserver>
- **最后更新:** 2026-07-25T20:55:25-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- golangci-lint-langserver (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.0.12
## 项目历史与用法

golangci-lint-langserver is a small language server that adapts golangci-lint diagnostics to editor LSP clients. Its README defines it directly as a golangci-lint language server and documents editor configuration rather than a large standalone product surface.

### 项目历史

The project was demonstrable by an asciinema recording around 2020 and had early 0.0.x releases in that period. Its README centers on launching `golangci-lint-langserver` and passing a `golangci-lint run` command that emits JSON diagnostics.

As golangci-lint evolved from v1 to v2 output flags, the README added version-compatibility guidance: v2 uses `--output.json.path stdout --show-stats=false`, while v1 used `--out-format json`.

### 采用历史

Adoption is mostly editor-driven. The README documents coc.nvim, vim-lsp, nvim-lspconfig, Emacs lsp-mode, and Helix configuration, and notes that Emacs lsp-mode has built-in support when the executable is present.

The batch input records Homebrew and Nix packaging, which matches its role as an auxiliary executable installed beside `golangci-lint` rather than as a primary Go toolchain command.

### 使用方式

Users install `golangci-lint` separately, install the language server with Go's install command or a package manager, and configure the editor's LSP client to run it for Go files.

The language server shells out to `golangci-lint run` and reads JSON output, so its practical behavior is tightly coupled to the installed golangci-lint version and the project's `.golangci` configuration.

### 为什么软件包爱好者会关心

For package nerds, golangci-lint-langserver is the glue package: it turns a CI-oriented linter runner into editor feedback without reimplementing the linters. That is useful in Homebrew and Nix because users can compose it with pinned versions of `golangci-lint`, Neovim, Emacs, or Helix.

Its narrow scope is also the point. The package exists to bridge command-line lint output into LSP diagnostics, so a small, dependency-light binary is more valuable than a broad feature set.

### 时间线

- 2020: Public demo and early 0.0.x release line for the language server.
- 2021: Users were configuring v0.0.6 with Neovim and golangci-lint JSON output.
- 2023: README notes built-in Emacs lsp-mode support since late 2023.
- 2025: README documents golangci-lint v2 output flag compatibility.

### Related projects

- golangci-lint is the required analyzer backend.
- gopls is commonly run beside it as the main Go language server.
- coc.nvim, vim-lsp, nvim-lspconfig, Emacs lsp-mode, and Helix are documented editor clients.

### 来源

- <https://asciinema.org/a/308369>
- <https://github.com/nametake/golangci-lint-langserver>
- <https://github.com/nametake/golangci-lint-langserver/issues/17>
- <https://github.com/nametake/golangci-lint-langserver/releases>
- <https://golangci-lint.run/docs/welcome/integrations/>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- Nix - golangci-lint-langserver: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/golangci-lint-langserver/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/golangci-lint-langserver.yml](https://github.com/mxcl/pkgdb/blob/main/combined/golangci-lint-langserver.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
