https://github.com/radeksimko/go-mod-diff
To make comparison of Go dependencies easier after migrating to Go modules
https://github.com/radeksimko/go-mod-diff
dependencies go go-modules golang
Last synced: about 1 year ago
JSON representation
To make comparison of Go dependencies easier after migrating to Go modules
- Host: GitHub
- URL: https://github.com/radeksimko/go-mod-diff
- Owner: radeksimko
- Created: 2019-02-05T22:25:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-12T12:34:45.000Z (about 6 years ago)
- Last Synced: 2025-02-07T12:48:29.694Z (over 1 year ago)
- Topics: dependencies, go, go-modules, golang
- Language: Go
- Homepage:
- Size: 461 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-mod-diff [](https://circleci.com/gh/radeksimko/go-mod-diff)
To make comparison of Go dependencies easier.
## Why?
`go mod init` is capable of migrating dependencies and its versions from
other dependency managers (such as govendor).
It does so on best effort basis.
Pinning to the exact same version is not always possible after migration:
- some package managers version on package level, not modules, which results in multiple versions of a module
- Go modules enforce 1 version per module (usually repository)
- some package managers have different ways of pinning to tags or revisions
- Go modules prefer semver-based pinning
- some package managers don't track transitive dependencies
- Go modules track all transitive dependencies
For these (and more) reasons this tool aims to help with comparison of dependency versions before and after the migration.
## Supports
- [Govendor](https://github.com/kardianos/govendor) as input format.
## Usage
Run from the root of Go Module enabled repository (where `go.mod` is):
```
$ go-mod-diff /tmp/0.11-vendor.json
```
## Example output
