gitrepo

module
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: Apache-2.0

README

Go Reference CircleCI

gitrepo

This is a library used to compute a project version given a git reference.

Here is how to use it:

c := Config{
	AuthBasicToken: "github-token",
	Dir:            "/path/to/some-repo",
	URL:            "git@github.com:giantswarm/some-repo.git",
}
repo, err := New(c)
version, err := repo.ResolveVersion(ctx, "master")
// version is 0.0.0-2e7604b8b3806b20ff305eb4e1a852c784ba34ca

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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