# mockery を Homebrew, apt, MacPorts, zypper, scoop でインストール

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

## インストール

```sh
sudo av install brew:mockery
```

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

### macOS

- Homebrew (100%):

```sh
brew install mockery
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mockery
```

  証拠: MacPorts ports tree: devel/mockery/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install mockery
```

  証拠: Debian stable package indexes: mockery from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install mockery
```

  証拠: openSUSE Tumbleweed package metadata: mockery from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/mockery
```

  証拠: Scoop official bucket manifest trees: bucket/mockery.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:mockery
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/mockery>
- **バージョン:** 3.7.2
- **ソース概要:** Mock code autogenerator for Golang
- **ホームページ:** <https://vektra.github.io/mockery/>
- **リポジトリ:** <https://github.com/vektra/mockery>
- **上流ドキュメント:** <https://vektra.github.io/mockery/>
- **ライセンス:** BSD-3-Clause
- **ソースアーカイブ:** <https://github.com/vektra/mockery/archive/refs/tags/v3.7.2.tar.gz>
- **最終更新:** 2026-07-29T17:05:00+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

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

## ビルド依存関係

- go

## インストール挙動

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

## バージョンと鮮度

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

mockery is a Go code generator from the vektra GitHub organization for creating mock implementations of Go interfaces. Its repository was created in 2014 and the README frames the original use case around generating mocks that work with `stretchr/testify/mock`, removing repetitive hand-written mock code in Go tests.

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

The project documentation broadens that role into a small code-generation framework: mockery inspects Go source, emits implementations for interfaces, supports multiple mock styles, and lets users provide custom templates rendered with typed interface metadata. Configuration via `.mockery.yaml` lets projects select packages and interfaces, which makes it suitable for repeatable generation in CI or local test workflows.

### 使われ方

Within package managers, mockery fills the Go-testing generator niche alongside tools such as mockgen and moq. Homebrew packages it as `mockery`, and package records also list Debian, Ubuntu, MacPorts, Scoop, and zypper, matching its role as a developer CLI installed outside an individual Go module when teams want consistent generated mocks across repositories.

### ソース

- <https://api.github.com/repos/vektra/mockery>
- <https://formulae.brew.sh/formula/mockery>
- <https://github.com/vektra/mockery>
- <https://vektra.github.io/mockery/v3.7/>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## 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

- Unix: .mockery.yml, .mockery.yaml
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mockery
- **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

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

- Debian apt - mockery - 2.15.0-1+b12: normalized package name match | Debian stable package indexes: mockery from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | mock code autogenerator for Golang | https://github.com/vektra/mockery
- Ubuntu apt - mockery - 2.15.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mockery from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | mock code autogenerator for Golang | https://github.com/vektra/mockery
- zypper - mockery - 2.53.5-1.7: normalized package name match | openSUSE Tumbleweed package metadata: mockery from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A mock code autogenerator for Go | https://github.com/vektra/mockery
- MacPorts - mockery: normalized package name match | MacPorts ports tree: devel/mockery/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/mockery: normalized package name match | Scoop official bucket manifest trees: bucket/mockery.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 関連リンク

- [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/) - Build dependency declared by Homebrew.
- [mockolo](https://pkg.so/ja/brew/mockolo/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, mocking, testing.
- [counterfeiter](https://pkg.so/ja/brew/counterfeiter/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go, testing.
- [protoc-gen-go-grpc](https://pkg.so/ja/brew/protoc-gen-go-grpc/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go.
- [moto](https://pkg.so/ja/brew/moto/) - Shares pkgdb curated category or tags: cli, developer-tools, mocking, testing.
- [richgo](https://pkg.so/ja/brew/richgo/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [gor](https://pkg.so/ja/brew/gor/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [fake-gcs-server](https://pkg.so/ja/brew/fake-gcs-server/) - Shares pkgdb curated category or tags: cli, developer-tools, go, testing.
- [lcov](https://pkg.so/ja/brew/lcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [ifacemaker](https://pkg.so/ja/brew/ifacemaker/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

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


## ソース

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