Skip to content
/ vsaur Public

vsaur = vendorsaurus : tools for working with Go modules (AKA vgo) and vendoring

License

Notifications You must be signed in to change notification settings

pokstad/vsaur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSaur = Vendorsaurus

VSaur is shorthand for Vendorsaurus. Vendorsaurus is collection of utilities for maintaining versioned Go modules (a.k.a. vgo) usage in a project. It is designed to be used in CI/CD systems to automate best practices.

status head of master
builds in CI CircleCI
command documentation GoDoc
library documentation GoDoc

Features

Planned features:

Install

Vendorsaurus requires Go 1.11 or higher. To install, go get it:

go get -u github.com/pokstad/vsaur/cmd/vsaur

This will install the vsaur executable at $GOPATH/bin/vsaur. If your $GOPATH environment variable is not set, by default it will be $HOME/go.

Or you can download a release copy from the GitHub page.

Usage

Simply run the vsaur command in the top level directory of a Go module you wish to validate:

$ $GOPATH/bin/vsaur

For a current and complete list of command options, view the command's Go doc string:

$ go doc github.com/pokstad/vsaur/cmd/vsaur
Command vsaur provides static analysis tools for automating best practices
related to versioned Go modules.

Usage:

To analyze everything in a project, simply run vsaur while in a project
directory. This will run all possible checks.

    $ vsaur
    TODO: sample output of vsaur running all checks

To only run a subset of checks, provides the -checks flag with a comma
delimited list of check names:

    $ vsaur -checks mod-local-replaces,sum-overflow
    TODO: sample output of vsaur running selective checks

By default, vsaur will look for a file in the current directory named
".vsaur.json" to load a JSON formatted configuration instead of relying on
flags. Or specify a config file path of your choosing with the flag -config:

    $ vsaur -config .vsaur-release.json

About

vsaur = vendorsaurus : tools for working with Go modules (AKA vgo) and vendoring

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published