Automic VaultAutomic Vault

brew

gci を Homebrew, Nix でインストール

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install gci

local Homebrew formula metadata

Linux

Nix確認済み · 92%
nix profile install nixpkgs#gci

nixpkgs package indexes · pkgs/by-name/gc/gci/package.nix · ソース: api.github.com

概要

パッケージ概要

Control Golang package import order and make it always deterministic

コマンドとエイリアス

  • gci

履歴

プロジェクトの歴史と使われ方

GCI is a Go command-line formatter focused on deterministic import ordering. Its README describes it as a tool that controls Go package import order and makes that order deterministic.

The project exists in the same formatting niche as gofmt and goimports, but its distinguishing feature is configurable import sections for teams that want more structure than default Go formatting provides.

プロジェクトの歴史

The official GitHub repository was created on July 15, 2020, and the first listed GitHub release, v0.1, was published on July 21, 2020.

The README documents steady feature evolution in the 0.x line, including C import block handling since v0.9.0 and a v0.10.0 command-line change requiring repeated -s/--section flags for multiple sections.

採用の歴史

GCI adoption is clearest in Go tooling workflows rather than end-user applications. Its README points CI users toward golangci-lint, and the repository includes a .golangci.yml that enables the gci linter alongside gofmt, gofumpt, and goimports.

Official GitHub repository metadata showed several hundred stars and dozens of forks by mid-2026, a modest but real signal for a specialized Go formatter.

使われ方

The README recommends installing with go install github.com/daixiang0/gci@latest or with an explicit version. The CLI provides print, write, list, and diff modes so it can either report formatting drift or rewrite files in place.

GCI groups imports into sections such as standard, default, custom prefix, blank, dot, alias, and localmodule. Local module detection reads go.mod or go.work in the directory where gci is invoked.

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

GCI is package-nerd relevant because import sorting is a tiny behavior that creates outsized diff churn in Go repositories. Pinning a deterministic formatter in package managers and CI makes formatting a reproducible build-adjacent rule instead of a reviewer preference.

Its section model gives teams a stricter import taxonomy than goimports alone, which makes it useful in repositories that care about separating standard-library, third-party, local-module, and custom-prefix imports.

タイムライン

  • 2020: Repository created on July 15
  • 2020: v0.1 released on July 21
  • 2022: v0.9.0 released on November 25
  • 2023: v0.10.0 released on March 10
  • 2026: v0.14.0 released on February 28

Related projects

  • The README explicitly positions GCI near goimports by noting that it allows more custom formatting than goimport does.
  • The repository configuration and README connect GCI to golangci-lint, gofmt, gofumpt, and goimports in normal Go CI formatting workflows.

セキュリティ状態

リスクレベル: グリーン

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 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
gcicliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版0.14.0
マネージャ更新日
ローカルデータOK
上流最新
検出された最新v0.14.0

https://github.com/daixiang0/gci

  • 情報No package-manager update timestamp was available.信頼度 低

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:gci
バージョン0.14.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/gci
ホームページhttps://github.com/daixiang0/gci
リポジトリhttps://github.com/daixiang0/gci
上流ドキュメントhttps://github.com/daixiang0/gci#readme
ライセンスBSD-3-Clause
ソースアーカイブhttps://github.com/daixiang0/gci/archive/refs/tags/v0.14.0.tar.gz
ビルド依存関係go
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegci
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%

gci

nix profile install nixpkgs#gci
  • normalized package name match
  • 一致条件: Gci
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gc/gci/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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