vendorlint was designed to help me prevent imports that have not been added to the vendor directory. vendorlint will also output the source file line/column for the missing dependency.
Usage: vendorlint [-t] package [package ...]
-t include test dependencies
-v vendorlint version number
dweb@dweb-linux vendorlint (master*) $ ./bin/vendorlint .
[X] Dependency not vendored: github.com/fatih/color
* vendorlint/lint.go:14:2
[X] Dependency not vendored: github.com/kisielk/gotool
* vendorlint/lint.go:15:2
-
Add extra rules around vendor best practices.
-
Add tests
-
Notes:
I was inspired by vendorcheck but wanted to add extra functionality. It became clear that what I wanted to add would result a complete rewrite. I decide to just start something new.