https://github.com/icholy/gomajor
Go tool for major version upgrades
https://github.com/icholy/gomajor
dependencies go golang
Last synced: 3 months ago
JSON representation
Go tool for major version upgrades
- Host: GitHub
- URL: https://github.com/icholy/gomajor
- Owner: icholy
- License: mit
- Created: 2020-09-16T20:58:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-25T11:38:37.000Z (9 months ago)
- Last Synced: 2025-03-22T09:04:35.984Z (4 months ago)
- Topics: dependencies, go, golang
- Language: Go
- Homepage:
- Size: 196 KB
- Stars: 135
- Watchers: 5
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GOMAJOR
> A tool for major version upgrades
## Installation
```sh
go install github.com/icholy/gomajor@latest
```## Commands
* `get` - Upgrade to a major version
* `list` - List available updates
* `path` - Modify the module pathUsage format is as follows: `gomajor [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 `GOPRIVATE` are skipped.