fix-vendor-conflicts

Diagnose and resolve vendor conflicts during Go dependency upgrades.

5.4k|739|Updated Jan 24, 2020
One-click install
npx skills add https://github.com/grafana/tempo --skill fix-vendor-conflicts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-vendor-conflicts
Source: https://github.com/grafana/tempo/tree/main/.claude/skills/fix-vendor-conflicts
Command: npx skills add https://github.com/grafana/tempo --skill fix-vendor-conflicts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides users through diagnosing and resolving vendor/ conflicts caused by dependency changes during merges, rebases, or upgrades.

Core Features & Use Cases

  • Guided conflict diagnosis: Identifies when vendor/ changes cause breaks after dependency bumps.
  • Safe remediation workflow: Encourages upgrades and pinning upstream dependencies instead of patching vendor/.
  • Guardrails & verification: Enforces pre-commit checks and reproducible builds before committing.

Quick Start

Begin by inspecting go.mod and vendor changes, then run tidy to surface issues and apply upstream fixes.

Frequently Asked Questions about fix-vendor-conflicts

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

FAQPage Schema
How do I resolve vendor conflicts in Go projects after a dependency upgrade?

To resolve vendor conflicts in Go projects after a dependency upgrade, inspect go.mod and vendor changes, run tidy to surface issues, apply upstream fixes, and verify reproducible builds before committing.

Why should I never manually patch files in the vendor directory?

You should never manually patch vendor files because it breaks build reproducibility and complicates future maintenance. Safe remediation requires upgrading and pinning upstream dependencies instead of directly editing vendor directory contents.

What is the required pre-commit checklist for tidying Go modules and vendor directories?

The required pre-commit checklist for tidying Go modules and vendor directories mandates running tidy, vendor, build, tests, and manifest regeneration to enforce guardrails and verify reproducible builds before committing changes.

Does this workflow handle transitive dependency cascades during merges and rebases?

Yes, this workflow handles transitive dependency cascades during merges and rebases. It guides users through diagnosing vendor conflicts caused by both direct dependency bumps and transitive cascades on main or release branches.

What's the best way to diagnose vendor breaks caused by go.mod changes?

The best way to diagnose vendor breaks caused by go.mod changes is to begin by inspecting go.mod and vendor differences, then run tidy to surface underlying issues and apply necessary upstream dependency fixes.

When do I need to regenerate manifests during a Go vendor conflict resolution?

You need to regenerate manifests during Go vendor conflict resolution as a mandatory step in the pre-commit checklist, ensuring build reproducibility and proper dependency tracking after applying upstream fixes.