A small gvt-based tool to list unused dependencies that can be removed from your vendor.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd/gvt-unused
testdata
vendor
.gitignore
.travis.yml
README.md
golist.go
golist_test.go
imports.go
manifest.go
manifest_test.go
unused.go

README.md

gvt-unused

Build Status

A small gvt-based tool to list unused dependencies that can be removed from your vendor.

Disclaimer

This application does not perform any action on your vendor files - it acts as a kind friend who has some advice which you may or may not follow. In the end it's your life, and nobody should be blamed by your choices other than yourself.

Installation & Usage

In order to install gvt-unused type:

$ go get -u github.com/slomek/gvt-unused/...

In order to list unused dependencies in a project using gvt as a vendoring tool, type:

$ gvt-unused
‣ Listing dependencies from manifest file...
‣ Listing dependencies from source code...
↳ Looking in the sources
↳ Looking in the test sources
↳ Filtering non-standard imports...
...

If you are using a non-standard manifest JSON location (vendor/manifest), you can define a custom one:

$ gvt-unused -manifest vendor/manifest-file-path

Kudos

Kudos to Filippo Valsorda for making gvt.