gomock-scan

Scan GitHub organizations and repositories for deprecated golang/mock usage.

2|Updated Jul 8, 2024
One-click install
npx skills add https://github.com/redhat-best-practices-for-k8s/telco-bot --skill gomock-scan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gomock-scan
Source: https://github.com/redhat-best-practices-for-k8s/telco-bot/tree/main/.claude/skills/gomock-scan
Command: npx skills add https://github.com/redhat-best-practices-for-k8s/telco-bot --skill gomock-scan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Repositories occasionally rely on the deprecated github.com/golang/mock package, making migrations and maintenance harder. gomock-scan identifies these repos to accelerate modernization to go.uber.org/mock.

Core Features & Use Cases

  • Scans GitHub organizations and multiple repositories to detect golang/mock usage.
  • Supports optional issue creation to track migrations via the --create-issues flag.
  • Provides practical migration guidance for updating tests to the new mock library.

Quick Start

Run gomock-scan to scan for deprecated gomock usage across your repositories.

Frequently Asked Questions about gomock-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan GitHub repositories for deprecated golang/mock usage?

To scan GitHub repositories for deprecated golang/mock usage, run gomock-scan across your organization or multiple repositories. It uses the gomock-lookup.sh script to detect the deprecated package and surface affected repos for migration to go.uber.org/mock.

What is the best way to find repositories still using the deprecated golang/mock package?

The best way to find repositories using the deprecated golang/mock package is to run gomock-scan across your GitHub organization. It identifies affected repositories and provides practical migration guidance for updating tests to the new mock library.

Can I automatically create issues for repositories that need gomock migration?

Yes, you can automatically create issues for repositories needing gomock migration by running gomock-scan with the --create-issues flag. This tracks affected repositories across your GitHub organization and proposes migration actions.

Why should I migrate from golang/mock to go.uber.org/mock?

Migrating from golang/mock to go.uber.org/mock is necessary because the golang/mock package is deprecated. gomock-scan identifies repositories relying on the deprecated package to accelerate modernization and reduce maintenance difficulties.

Does gomock-scan work across an entire GitHub organization?

Yes, gomock-scan works across entire GitHub organizations and multiple repositories. It scans for deprecated gomock usage throughout your organization and optionally creates issues to track migrations via the --create-issues flag.