Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 golangci-lint

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install golangci-lint

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install golangci-lint

MacPorts ports tree · devel/golangci-lint/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add golangci-lint

Alpine Linux edge package indexes · golangci-lint · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install golangci-lint

Fedora Rawhide package metadata · golangci-lint · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#golangci-lint

nixpkgs package indexes · pkgs/by-name/go/golangci-lint/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S golangci-lint

Arch Linux sync databases · golangci-lint · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install golangci-lint

openSUSE Tumbleweed package metadata · golangci-lint · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install golangci-lint

Chocolatey community package catalog · golangci-lint · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/golangci-lint

Scoop official bucket manifest trees · bucket/golangci-lint.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id GolangCI.golangci-lint -e

Windows Package Manager source index · GolangCI.golangci-lint · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Fast linters runner for Go

命令和别名

  • golangci-lint

历史

项目历史与用法

golangci-lint is a fast Go linters runner. The project presents itself as a parallel, cached runner with YAML configuration, major IDE integration, and more than one hundred included linters.

项目历史

The GitHub repository was created in May 2018. The project grew around a simple premise: run many Go linters together, make the result fast enough for local and CI use, and centralize configuration in `.golangci` files.

By 2019 and 2020 the changelog shows the project adding Go version support, more linters, GitHub Actions output, bash completions, junit-xml output, auto-fixing improvements, and a dedicated website. The May 2020 changelog entry records the launch of `golangci-lint.run`.

The v1 line accumulated a long compatibility history and ended with the project documenting v1.64.2 as the last minor v1 release before v2. The v2 changelog begins in 2025 and introduced product-level changes such as a new `golangci-lint fmt` command and separated v1/v2 changelog documentation.

采用历史

golangci-lint became a default Go quality gate because it packaged many independent analyzers behind one binary and one config file. Its README advertises installation for local machines and CI/CD systems, and the batch input records packages across apk, Homebrew, Chocolatey, dnf, MacPorts, Nix, pacman, Scoop, winget, and zypper.

The project also maintains an official GitHub Action, listed in GitHub Marketplace, for running golangci-lint and reporting issues in GitHub workflows. The repository had over 19,000 stars and more than 1,500 forks in the 2026 GitHub API snapshot used for this batch.

使用方式

The normal package-manager workflow is to install `golangci-lint`, add a `.golangci.yml` or equivalent config to the repository, and run `golangci-lint run` locally or in CI. The project documents integrations for editors and shells as well as CI installation paths.

Its value comes from combining speed and policy. Teams can enable a curated set of linters, cache work between runs, use generated output formats for CI annotations, and keep Go lint rules close to the source tree in a checked-in config file.

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

For package nerds, golangci-lint is one of the canonical Go toolbox binaries: version-sensitive, CI-facing, heavily bottled, and commonly pinned in development environments. It is also a stress test for package ecosystems because it embeds many analyzers whose compatibility tracks Go releases.

It matters culturally because it made Go linting feel like installing one dependable command instead of assembling a personal pile of analyzer binaries. That is exactly the kind of tool Homebrew, Nix, Arch, and CI images tend to converge on.

时间线

  • 2018: GitHub repository created for a fast Go linters runner.
  • 2019: Changelog records Go 1.12 and Go 1.13 support, new linters, junit-xml output, bash completions, and improved auto-fixing.
  • 2020: Dedicated website launched at `golangci-lint.run`; GitHub Actions output and additional linters added.
  • 2025: v1.64.2 documented as the last minor v1 release before v2.
  • 2025: v2 changelog begins with product changes including formatting support and separated v1/v2 documentation.

Related projects

  • The official `golangci-lint-action` runs golangci-lint in GitHub Actions.
  • golangci-lint wraps and coordinates many Go analyzers, including tools from the Staticcheck and go/analysis ecosystem.
  • golangci-lint-langserver and editor integrations adapt the CLI's diagnostics for local development.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
./.golangci.yml./.golangci.yaml./.golangci.toml./.golangci.json~/.golangci.yml~/.golangci.yaml~/.golangci.toml~/.golangci.json

可执行文件

已安装的可执行文件

命令类型暴露范围备注
golangci-lintcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.12.2
管理器更新时间2026-05-06
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/golangci/golangci-lint

安装元数据

软件包元数据

软件包键brew:golangci-lint
版本2.12.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/golangci-lint
主页https://golangci-lint.run/
仓库https://github.com/golangci/golangci-lint
上游文档https://golangci-lint.run/
许可证GPL-3.0-only
源码归档https://github.com/golangci/golangci-lint.git
最后更新2026-05-06T12:03:02Z
Pulseupdated
依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegolangci-lint
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

golangci-lint

nix profile install nixpkgs#golangci-lint
  • normalized package name match
  • 匹配方式:Golangci Lint
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/go/golangci-lint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

golangci-lint 2.5.0-r7

Fast linters runner for Go

https://golangci-lint.run/

sudo apk add golangci-lint
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: golangci-lint
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Golangci Lint
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: golangci-lint from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

golangci-lint-bash-completion 2.5.0-r7

Bash completions for golangci-lint

https://golangci-lint.run/

sudo apk add golangci-lint-bash-completion
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: golangci-lint
  • normalized package name match
  • 匹配方式:Golangci Lint
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: golangci-lint-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

golangci-lint-fish-completion 2.5.0-r7

Fish completions for golangci-lint

https://golangci-lint.run/

sudo apk add golangci-lint-fish-completion
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: golangci-lint
  • normalized package name match
  • 匹配方式:Golangci Lint
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: golangci-lint-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

golangci-lint-zsh-completion 2.5.0-r7

Zsh completions for golangci-lint

https://golangci-lint.run/

sudo apk add golangci-lint-zsh-completion
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: golangci-lint
  • normalized package name match
  • 匹配方式:Golangci Lint
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: golangci-lint-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

golangci-lint 2.11.4-1.fc45

Fast linters runner for Go

https://github.com/golangci/golangci-lint

sudo dnf install golangci-lint
  • License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-3.0-only AND ISC AND MIT AND MPL-2.0 AND Unlicense AND (MIT OR Unlicense)
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: golangci-lint
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Golangci Lint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: golangci-lint from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

golangci-lint 2.12.2-1

Fast linters runner for Go

https://github.com/golangci/golangci-lint

sudo pacman -S golangci-lint
  • License: GPL-3.0-only
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Golangci Lint
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: golangci-lint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

golangci-lint 2.12.2-1.1

A fast Go linters runner

https://golangci-lint.run

sudo zypper install golangci-lint
  • License: GPL-3.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: golangci-lint
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Golangci Lint
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: golangci-lint from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

golangci-lint

sudo port install golangci-lint
  • normalized package name match
  • 匹配方式:Golangci Lint
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/golangci-lint/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

golangci-lint

choco install golangci-lint
  • normalized package name match
  • 匹配方式:Golangci Lint
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: golangci-lint from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','glab'
Scoop95%

main/golangci-lint

scoop install main/golangci-lint
  • normalized package name match
  • 匹配方式:Golangci Lint
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/golangci-lint.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

GolangCI.golangci-lint

winget install --id GolangCI.golangci-lint -e
  • normalized package name match
  • 匹配方式:Golangci Lint
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: GolangCI.golangci-lint from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment