gomajor

command module
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 14 Imported by: 0

README

GOMAJOR

A tool for major version upgrades

Installation

go install github.com/icholy/gomajor@latest

Commands

  • get - Upgrade to a major version
  • list - List available updates
  • path - Modify the module path

Usage format is as follows: gomajor <command> [arguments]

Usage

List Updates
gomajor list
Update a module to its latest version
gomajor get github.com/go-redis/redis@latest
Switch a module to a specific version
gomajor get github.com/go-redis/redis@v7
Update all mobules to their latest version
gomajor get all
Increment module path version
gomajor path -next
Change module path version
gomajor path -version v3
Change module path
gomajor path goredis.io
Warning:
  • This tool does not understand replace directives or nested modules.
  • By default, only cached content will be fetched from the module proxy (See -cached flag).
  • If you have multiple major versions imported, ALL of them will be rewritten (See -rewrite flag).
  • The latest version will not be found if there are gaps between major version numbers.
  • The path command does not rewrite package names.
  • Modules matching GONOPROXY/GOPRIVATE are resolved via go list -m, which uses your VCS credentials, instead of the module proxy.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
importpaths
Package importpaths implements import path rewriting credit: https://gist.github.com/jackspirou/61ce33574e9f411b8b4a
Package importpaths implements import path rewriting credit: https://gist.github.com/jackspirou/61ce33574e9f411b8b4a

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL