Skip to content

Tool to quickly locate paths with conflicting dependencies.

License

Notifications You must be signed in to change notification settings

muskonu/modconflict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modconflict

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.

Installation

go install

go install github.com/muskonu/modconflict@latest

modconflict graph

Generate images of potentially conflicting dependency routes.

Synopsis

Generate images of potentially conflicting dependency routes.

modconflict graph [flags]

Options

  -h, --help           help for graph
  -o, --ouput string   the name of the output file, with different formats depending on the suffix.

Options inherited from parent commands

  -f, --file string   select the file where the results of the go mod graph are saved as input

example

//use pipe as input
go mod graph | modconflict graph -o demo.svg
//use file as input
modconflict graph -f a.txt

modconflict plain

Print out the chain of possible dependency conflicts.

Synopsis

Print out the chain of possible dependency conflicts.

modconflict plain [flags]

Options

  -h, --help   help for plain

Options inherited from parent commands

  -f, --file string   select the file where the results of the go mod graph are saved as input

example

//use pipe as input
go mod graph | modconflict plain
//use file as input
modconflict plain -f a.txt

output

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

About

Tool to quickly locate paths with conflicting dependencies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages