Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
/ golistcmp Public archive

A tool for comparing the output of 'go list -m -json all' executions.

License

Notifications You must be signed in to change notification settings

stellar/golistcmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

golistcmp

Build Status

A tool for comparing the output of go list -m -json executions.

Install

go get github.com/stellar/golistcmp

Usage

Usage of golistcmp:
  golistcmp <go list before> <go list after>

Example (built dependency graph comparison):
  git checkout master
  go list -json -deps -test ./... | jq -s 'map(select(.Module != null) | .Module) | unique | .[]' > go.list.json.master
  git checkout mybranchwithchanges
  go list -json -deps -test ./... | jq -s 'map(select(.Module != null) | .Module) | unique | .[]' > go.list.json.mybranchwithchanges
  golistcmp go.list.json.master go.list.json.mybranchwithchanges 

Example (full dependency graph comparison):
  git checkout master
  go list -m -json all > go.list.json.master
  git checkout mybranchwithchanges
  go list -m -json all > go.list.json.mybranchwithchanges
  golistcmp go.list.json.master go.list.json.mybranchwithchanges

Flags:
  -help
        print this help

About

A tool for comparing the output of 'go list -m -json all' executions.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages