https://github.com/rogpeppe/gomodmerge
merge go.mod files
https://github.com/rogpeppe/gomodmerge
Last synced: about 2 months ago
JSON representation
merge go.mod files
- Host: GitHub
- URL: https://github.com/rogpeppe/gomodmerge
- Owner: rogpeppe
- Created: 2018-10-23T10:09:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T10:14:19.000Z (over 6 years ago)
- Last Synced: 2025-03-01T11:34:50.168Z (3 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 18
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gomodmerge
Sometimes we'll have a project that uses Go modules but one of its dependencies do not. Updating your project when its dependencies change can be awkward because there's no easy way of merging dependency requirements from non-module build systems such as dep.
The `gomodmerge` tool makes it possible to do that. In your non-module dependency, run `go mod init` to create a module file for that dependency. Then in your project, run `gomodmerge $dependency/go.mod` to merge any versions that are newer.