pkgtree

command module
v0.0.0-...-5193a12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

README

pkgtree

Go packages dependency analysis tool

Why?

When working with large Go repositories running all tests or other tasks for every change in CI is costly. With pkgtree it is possible to identify which packages changed or affected according to some commit.

Examples

Get changed packages from last commit to current commit (HEAD^ to HEAD):

❯ pkgtree changed

Get changed packages from a certain commit to current commit including uncommited changes:

❯ pkgtree changed --since-ref=75b634b30f4d6705433d916b2f55aa233dc9be55 --include-dirty

Get affected (including changed) packages from last commit to current commit (HEAD^ to HEAD):

❯ pkgtree affected

Get affected packages from certain reference excluding the changed packages themselves:

❯ pkgtree affected --since-ref=origin/main~4 --include-changed=false

Pass a different git dir:

❯ pkgtree affected --git-dir=~/dev/pkgtree

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL