# gofumpt を Homebrew, Nix, pacman でインストール

gofumpt のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:gofumpt
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gofumpt
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gofumpt
```

  証拠: nixpkgs package indexes: pkgs/by-name/go/gofumpt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gofumpt
```

  証拠: Arch Linux sync databases: gofumpt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## パッケージ情報

- **パッケージキー:** brew:gofumpt
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/gofumpt>
- **バージョン:** 0.11.0
- **ソース概要:** Stricter gofmt
- **ホームページ:** <https://github.com/mvdan/gofumpt>
- **リポジトリ:** <https://github.com/mvdan/gofumpt>
- **ライセンス:** BSD-3-Clause
- **ソースアーカイブ:** <https://github.com/mvdan/gofumpt/archive/refs/tags/v0.11.0.tar.gz>
- **最終更新:** 2026-07-27T14:57:51+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- gofumpt (cli)
- gofumpt (エイリアス)

## 依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.11.0
- マネージャ更新日: 2026-07-27
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/mvdan/gofumpt
- 検出された最新: v0.11.0 (最新)
## プロジェクトの歴史と使われ方

gofumpt is a stricter Go formatter that remains compatible with gofmt output. It accepts a narrower formatting style and can be used as a drop-in command for formatting Go source.

The project occupies a practical niche between the Go toolchain's conservative formatter and teams that want more consistent source layout without maintaining custom formatter rules.

### プロジェクトの歴史

The repository began in March 2019 by importing source from cmd/gofmt and adding the first stricter formatting rules. The README continues to describe the tool as a fork of gofmt with added rules implemented in the format package.

The first release, v0.1.0 in January 2021, documented the features that had worked for more than a year. Later releases track Go formatter changes: v0.3.0 was based on Go 1.18's gofmt, v0.5.0 vendored Go formatting packages for stable behavior across build toolchains, and v0.10.0 was based on Go 1.26's gofmt.

### 採用の歴史

gofumpt spread through Go editor and CI workflows because it preserves gofmt compatibility while reducing formatting latitude. Its README presents it as a drop-in formatter, and the changelog notes that gopls supports gofumpt natively.

Package-manager adoption followed that formatter role: the input package facts list Homebrew, Nix, and pacman names, reflecting use across developer workstations rather than as a service dependency.

### 使われ方

The common command-line pattern is gofumpt -l -w . for listing and rewriting formatted files. The README documents skipped vendor and testdata directories unless passed explicitly, and generated files only receive added rules when passed explicitly.

Teams usually run gofumpt in pre-commit hooks, CI checks, or editor format-on-save paths. Library users can also call the format package when they need gofumpt behavior inside Go tooling.

### パッケージ好きにとっての重要性

gofumpt is package-nerd catnip because it is deliberately boring: it extends gofmt without rejecting gofmt's social contract. That made it acceptable in environments where arbitrary style formatters would be too divisive.

Its release history tracks Go's own formatter internals, so package maintainers care about which Go release a gofumpt version is based on. The vendoring change in v0.5.0 is especially important because it made output less dependent on the compiler used to build the binary.

### タイムライン

- 2019: Repository starts with cmd/gofmt source and first stricter formatting rules.
- 2021: v0.1.0 documents the first released rule set and deprecates gofumports.
- 2022: v0.3.0 bases the formatter on Go 1.18's gofmt and adds concurrency-related speedups.
- 2023: v0.5.0 vendors Go formatting packages for stable formatter output.
- 2026: v0.10.0 bases the formatter on Go 1.26's gofmt and adds rule selection for extra rules.

### Related projects

- gofmt is the upstream formatter model and source base.
- gopls, the Go language server, provides editor integration that can apply gofumpt behavior.
- goimports is related in editor workflows because it formats Go code while managing imports.

### ソース

- <https://github.com/mvdan/gofumpt>
- <https://github.com/mvdan/gofumpt#readme>
- <https://github.com/mvdan/gofumpt/blob/master/CHANGELOG.md>


## セキュリティノート

gofumpt に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。


## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gofumpt
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Nix - gofumpt: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gofumpt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - gofumpt - 0.10.0-1: normalized package name match | Arch Linux sync databases: gofumpt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A strict formatter for Go language | https://github.com/mvdan/gofumpt


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/ja/brew/go/) - Runtime dependency declared by Homebrew.
- [gci](https://pkg.so/ja/brew/gci/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter, go.
- [asmfmt](https://pkg.so/ja/brew/asmfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, go, gofmt.
- [swiftformat](https://pkg.so/ja/brew/swiftformat/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [shfmt](https://pkg.so/ja/brew/shfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, go.
- [black](https://pkg.so/ja/brew/black/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [yamlfmt](https://pkg.so/ja/brew/yamlfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, go.
- [stylua](https://pkg.so/ja/brew/stylua/) - Shares pkgdb curated category or tags: cli, code-style, developer-tools, formatter.
- [goimports](https://pkg.so/ja/brew/goimports/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, go.
- [cljfmt](https://pkg.so/ja/brew/cljfmt/) - Local package facts share a topical domain. Shared terms: cli, code, code-style, developer, developer-tools.

## Combined YAML source

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


## ソース

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