Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct { Module *modfile.File // map of packages, with the package name as key (e.g.: // github.com/uw-labs/patrol/patrol) Packages map[string]*Package // contains filtered or unexported fields }
func NewRepo ¶
NewRepo constructs a Repo from path, which needs to contain a go.mod file. It builds a map of all packages found in that repo and the dependencies between them.
func (*Repo) ChangesFrom ¶
ChangesFrom returns a list of all packages within the repository (excluding packages in vendor/) that changed since the given revision. A package will be flagged as change if any file within the package itself changed or if any packages it imports (whether local, vendored or external modules) changed since the given revision. If allChanges is false it will be only concerned about changes in .go files.
func (*Repo) ModuleName ¶
func (*Repo) OwnsPackage ¶
Click to show internal directories.
Click to hide internal directories.