digitalocean/gta

Go

Open original ↗

Captured source

source ↗
published Mar 11, 2016seen 5dcaptured 9hhttp 200method plain

digitalocean/gta

Description: gta: do transitive analysis to find packages whose dependencies have changed

Language: Go

License: Apache-2.0

Stars: 224

Forks: 31

Open issues: 7

Created: 2016-03-11T13:58:13Z

Pushed: 2026-05-28T21:29:23Z

Default branch: master

Fork: no

Archived: no

README:

gta

Overview

gta is an application which finds Go packages that have deviated from their upstream source in git. A typical situation is when a project is using a monorepo. At build or continuous integration time, you won't have to build every single package since you will know which packages (and dependencies) have changed.

![GTA in Action](gta.gif)

Installation

go install github.com/digitalocean/gta/cmd/gta

After installation, you will have a gta binary in $GOPATH/bin/

Usage

List packages that should be tested since they have deviated from master.

gta -include "$(go list -f '{{ .Module.Path }}')/"

List packages that have deviated from the most recent merge commit.

gta -include "$(go list -f '{{ .Module.Path }}')/"

What gta does

gta builds a list of "dirty" (changed) packages from master, using git. This is useful for determining which tests to run in larger monorepo style repositories.

gta works by implementing a various set of interfaces, namely the Differ and Packager interfaces.

Note: When using this tool, it is common to hit the maximum number of open file descriptors limit set by your OS. On macOS, this may be a measly 256. Consider raising that maximum to something reasonable with:

sudo ulimit -n 4096

License

This application is distributed under the Apache 2 license found in [LICENSE](LICENSE)