Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 gopls

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gopls

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gopls

MacPorts ports tree · devel/gopls/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gopls

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

Debian apt已验证 · 92%
sudo apt install gopls

Debian stable package indexes · gopls · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install gopls

Fedora Rawhide package metadata · gopls · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#gopls

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

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

Arch Linux sync databases · gopls · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install gopls

openSUSE Tumbleweed package metadata · gopls · 来源: download.opensuse.org

概览

软件包摘要

Language server for the Go language

命令和别名

  • gopls

历史

项目历史与用法

gopls, pronounced go please, is the official Go language server developed by the Go team. It made Go editor support less dependent on one editor plugin by concentrating language intelligence behind the Language Server Protocol.

项目历史

gopls lives in the Go project's x/tools repository, the long-running home for Go analysis and developer tooling outside the main Go distribution. The gopls module appears as `golang.org/x/tools/gopls` and is documented on go.dev as the official language server for Go.

The project emerged during the Go modules era, when editor tooling needed to understand module-aware package loading, workspaces, diagnostics, code actions, and analysis across a changing build environment. Early tagged gopls releases in the tools repository begin with the `gopls/v0.2.x` series.

Over time, gopls moved from editor helper to a central Go development service. Its documentation covers editor-specific setup, LSP features, workspace behavior, analyzers, design notes, troubleshooting, and release notes.

采用历史

The Go FAQ describes gopls as the Go team's supported language server for LSP-capable tools. That endorsement turned gopls into the default backend for many editors rather than a niche optional package.

Package-manager adoption is broad for a Go developer tool: the input facts list packages across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, and openSUSE. That spread reflects its role as infrastructure for editors and CI-style tooling rather than a command users run manually every day.

Go telemetry planning has treated LSP-capable editors using gopls as a major part of the Go tool ecosystem, which is another sign that gopls became part of ordinary Go development workflows.

使用方式

Most users do not invoke gopls directly. Editors start it automatically to provide completion, hover, go-to-definition, diagnostics, formatting support, semantic tokens, code actions, references, and workspace operations.

Power users and editor maintainers use the documented settings, feature index, workspace documentation, and design notes to tune behavior or integrate gopls with less common LSP clients.

The gopls release documentation also shows it absorbing newer workflow surfaces, including an experimental MCP server mode in the v0.20.0 release line.

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

gopls is one of the clearest examples of a package-manager formula that is not an end-user app in the traditional sense but a local editor daemon. Installing it makes other tools work better.

It also matters because it centralizes Go-specific analysis in a versioned Go module. Package maintainers have to care about Go toolchain compatibility, editor compatibility, and x/tools release cadence, not just a single executable.

For Go ecosystem nerds, gopls marks the shift from editor-specific Go integrations such as gocode-era completion toward a shared language-server backend maintained by the Go project.

时间线

  • 2014: golang/tools repository created as the Go tools mirror.
  • 2019: Early gopls tags appear in the x/tools repository.
  • 2019: Go 1.13 makes module-aware workflows the default context for many Go developers.
  • 2020s: go.dev publishes dedicated gopls documentation, editor guides, feature docs, and design notes.
  • 2024: Go telemetry planning explicitly discusses LSP-capable editors that use gopls.
  • 2025: gopls v0.20.0 release notes document experimental MCP server support.

Related projects

  • golang.org/x/tools contains gopls and related Go developer tools such as goimports and stringer.
  • The Language Server Protocol defines the editor-server boundary that gopls implements.
  • The Go module system and proxy infrastructure shape how gopls loads and analyzes workspaces.

安全态势

尚未找到受保护工具覆盖

没有找到 gopls 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-10
管理器版本0.23.0
管理器更新时间2026-07-09
本地数据OK
上游当前
检测到的最新版本gopls/v0.23.0

https://github.com/golang/tools

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:gopls
版本0.23.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gopls
主页https://github.com/golang/tools/tree/master/gopls
仓库https://github.com/golang/tools
上游文档https://github.com/golang/tools/tree/master/gopls#readme
许可证BSD-3-Clause
源码归档https://github.com/golang/tools/archive/refs/tags/gopls/v0.23.0.tar.gz
最后更新2026-07-09T18:36:40Z
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 Namegopls
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

gopls 2:0.16.1+ds-1

language server for the Go language

https://golang.org/x/tools

sudo apt install gopls
  • Section: golang
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Gopls
Debian stable package indexes · deb.debian.org · Debian stable package indexes: gopls from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

gopls

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

gopls 1:0.18.0+ds-1

language server for the Go language

https://golang.org/x/tools

sudo apt install gopls
  • Section: universe/golang
  • Architecture: amd64
  • Source Package: golang-golang-x-tools
  • 1 依赖
  • normalized package name match
  • 匹配方式:Gopls
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: gopls from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

gopls 0.21.1-r3

Language server for Go programming language

https://github.com/golang/tools/blob/master/gopls

sudo apk add gopls
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: gopls
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gopls
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gopls from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

gopls 0.18.1-2.fc43

gopls, the Go language server

https://github.com/golang/tools

sudo dnf install gopls
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gopls
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gopls
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gopls from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gopls 0.22.0-1

Language server for Go programming language

https://github.com/golang/tools/tree/master/gopls

sudo pacman -S gopls
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Gopls
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gopls from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

gopls 0.22.0-1.1

Go LSP protocol language server

https://pkg.go.dev/golang.org/x/tools/gopls

sudo zypper install gopls
  • License: Apache-2.0 AND MIT AND BSD-3-Clause
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: gopls
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gopls
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gopls from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

gopls

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

来源线索

由仓库数据生成

此页面由 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 package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment