Automic VaultAutomic Vault

brew

使用 Homebrew, apt, MacPorts, zypper, scoop 安装 mockery

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install mockery

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install mockery

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

Linux

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

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

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

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

Windows

Scoop已验证 · 92%
scoop install main/mockery

Scoop official bucket manifest trees · bucket/mockery.json · 来源: api.github.com

概览

软件包摘要

Mock code autogenerator for Golang

命令和别名

  • mockery

历史

项目历史与用法

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.

安全态势

风险级别:绿色

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 个构建依赖。

建议审查

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

local files

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

Config paths the tool may read or write during local use.

Unix
.mockery.yml.mockery.yaml

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本3.7.2
管理器更新时间2026-07-23
本地数据OK
上游当前
检测到的最新版本v3.7.2

https://github.com/vektra/mockery

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

安装元数据

软件包元数据

软件包键brew:mockery
版本3.7.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/mockery
主页https://vektra.github.io/mockery/
仓库https://github.com/vektra/mockery
上游文档https://github.com/vektra/mockery#readme
许可证BSD-3-Clause
源码归档https://github.com/vektra/mockery/archive/refs/tags/v3.7.2.tar.gz
最后更新2026-07-23T21:07:55Z
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 Namemockery
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%

mockery 2.15.0-1+b12

mock code autogenerator for Golang

https://github.com/vektra/mockery

sudo apt install mockery
  • Section: devel
  • Architecture: amd64
  • Source Package: mockery
  • 1 依赖
  • normalized package name match
  • 匹配方式:Mockery
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mockery from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

mockery 2.15.0-1build1

mock code autogenerator for Golang

https://github.com/vektra/mockery

sudo apt install mockery
  • Section: universe/devel
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Mockery
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mockery from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
zypper95%

mockery 2.53.5-1.4

A mock code autogenerator for Go

https://github.com/vektra/mockery

sudo zypper install mockery
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: mockery
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Mockery
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: mockery from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

mockery

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

main/mockery

scoop install main/mockery
  • normalized package name match
  • 匹配方式:Mockery
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/mockery.json from https://api.github.com/repos/ScoopInstaller/Main/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 configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment