A tool to quickly locate paths to dependency conflicts, mainly to solve dependency problems caused by 0 major version numbers or various community non-compliance with the semver specification.
go install github.com/muskonu/modconflict@latest
Generate images of potentially conflicting dependency routes.
Generate images of potentially conflicting dependency routes.
modconflict graph [flags]
-h, --help help for graph
-o, --ouput string the name of the output file, with different formats depending on the suffix.
-f, --file string select the file where the results of the go mod graph are saved as input
//use pipe as input
go mod graph | modconflict graph -o demo.svg
//use file as input
modconflict graph -f a.txt
Print out the chain of possible dependency conflicts.
Print out the chain of possible dependency conflicts.
modconflict plain [flags]
-h, --help help for plain
-f, --file string select the file where the results of the go mod graph are saved as input
//use pipe as input
go mod graph | modconflict plain
//use file as input
modconflict plain -f a.txt
find Confict in package github.com/golang/protobuf:
demo -> github.com/golang/protobuf@v1.5.4
demo -> github.com/grpc-ecosystem/grpc-gateway/v2@v2.18.0 -> github.com/golang/protobuf@v1.5.3