Automic VaultAutomic Vault

brew

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

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install addlicense

local Homebrew formula metadata

Linux

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

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

概要

パッケージ概要

Scan directories recursively to ensure source files have license headers

コマンドとエイリアス

  • addlicense

履歴

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

addlicense is a Google-maintained Go command that recursively scans source trees and adds or checks copyright license headers. It is deliberately simple: run it over patterns, choose a supported license template or file, and optionally fail CI with -check.

プロジェクトの歴史

The official GitHub repository was created in June 2016. Its README describes a Go program that modifies source files in place, avoids duplicating headers that already exist, and supports Apache, BSD, MIT, and MPL-style headers plus custom license files.

The project is hosted under the google organization but explicitly says it is not an official Google product. The official tag list shows stable v1.x tags, and the README now documents Go installation, a GitHub Container Registry image, and pre-commit integration.

採用の歴史

addlicense fits the common open-source maintenance workflow where license headers are enforced in presubmit, CI, or pre-commit rather than by hand. The supplied package-manager metadata shows Homebrew and Nix packaging, while the README documents go install, Docker, and an official pre-commit hook.

使われ方

Typical use is addlicense . or addlicense with multiple file and directory patterns. Important package-maintainer flags include -check for verification-only runs, -ignore for vendored or generated files, -l for the license family, -f for custom text, -s for SPDX identifiers, and -c/-y for copyright holder and year.

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

For package and release engineers, addlicense is a boring tool in the best sense: it makes source-header policy reproducible and automatable. It is useful in repos where license conformance needs to be enforced before vendoring, releasing, or importing code into downstream packaging.

タイムライン

  • 2016-06: GitHub repository created.
  • v1.0.0: First stable tag appears in the official tag list.
  • Current README: Go install, container, and pre-commit workflows are documented.

Related projects

  • pre-commit is documented as an official hook consumer.
  • doublestar is referenced by the README for ignore-pattern semantics.

セキュリティ状態

リスクレベル: グリーン

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 メタデータは 8 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

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

実行可能ファイル

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

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

鮮度

バージョンと鮮度

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

ページ生成日2026-07-25
マネージャ版1.2.0
マネージャ更新日2026-05-26
ローカルデータOK
上流最新
検出された最新v1.2.0

https://github.com/google/addlicense

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:addlicense
バージョン1.2.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/addlicense
ホームページhttps://github.com/google/addlicense
リポジトリhttps://github.com/google/addlicense
上流ドキュメントhttps://github.com/google/addlicense#readme
ライセンスApache-2.0
ソースアーカイブhttps://github.com/google/addlicense/archive/refs/tags/v1.2.0.tar.gz
最終更新2026-05-26T23:37:49-04:00
Pulseupdated
ビルド依存関係go
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

addlicense

nix profile install nixpkgs#addlicense
  • normalized package name match
  • 一致条件: Addlicense
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ad/addlicense/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