upgrading-golang

Automates Go version upgrades across Chainloop source, Dockerfiles, CI workflows and documentation with SHA256 digests and optional Atlas migrations updates.

571|52|Updated Mar 6, 2023
One-click install
npx skills add https://github.com/chainloop-dev/chainloop --skill upgrading-golang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: upgrading-golang
Source: https://github.com/chainloop-dev/chainloop/tree/main/.claude/skills/upgrading-golang
Command: npx skills add https://github.com/chainloop-dev/chainloop --skill upgrading-golang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manually upgrading the Go version across an entire project is a tedious and error-prone task, requiring updates in go.mod, Dockerfiles, CI/CD workflows, and documentation. This Skill automates the entire process, ensuring consistency and reducing the risk of missed updates or build failures.

Core Features & Use Cases

  • Comprehensive Go Version Update: Automatically updates the Go version in go.mod, all relevant Dockerfiles (including SHA256 digests for security), GitHub Actions workflows, and project documentation.
  • Optional Atlas Migration Tool Upgrade: Integrates the ability to also upgrade the Atlas migrations Docker image and CLI tool, maintaining consistency across development tools.
  • Verification & Safety Checks: Includes steps for running make test and make lint to immediately verify the integrity of the codebase after the upgrade.
  • Use Case: A new critical security patch for Go is released, or the team decides to move to a newer Go version for performance benefits. Instead of a developer spending hours identifying and updating every single file, this Skill performs the entire upgrade, from fetching Docker image digests to updating all configuration files and verifying the build, allowing the developer to focus on core tasks.

Quick Start

Upgrade the Go version to 1.22.5 and also update the Atlas migrations Docker image to 0.38.0.

Frequently Asked Questions about upgrading-golang

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

FAQPage Schema
How do I update Go version across my entire codebase automatically?

Upgrading Go version across a codebase typically requires manual updates to go.mod, Dockerfiles, CI/CD workflows, and documentation. This Skill automates the entire process, updating all references including Docker image SHA256 digests, GitHub Actions workflows, and project docs in a single operation, then verifies the upgrade with make test and make lint.

Can I update Go version in Docker images and CI/CD workflows at the same time?

Yes. This Skill coordinates Go version updates across multiple file types simultaneously—go.mod directives, Dockerfiles with SHA256 digests for security, and GitHub Actions workflow files—ensuring consistency and eliminating missed updates that cause build failures.

What files does a Go version upgrade typically affect?

Go version upgrades impact go.mod files, Dockerfiles (including base image digests), GitHub Actions workflow configuration, and project documentation. This Skill identifies and updates all four categories automatically, reducing the manual work and coordination errors that occur with piecemeal updates.

How do I verify a Go version upgrade worked correctly?

After upgrading Go version across your project, verification requires running build and lint checks. This Skill includes built-in verification steps executing make test and make lint to confirm the codebase integrity immediately after the upgrade completes.

Can I upgrade development tools like Atlas migrations alongside Go?

Yes. This Skill supports optional upgrades to the Atlas migrations Docker image and CLI tool during the Go version update, maintaining consistency across your development toolchain without requiring separate update passes.