Categorygithub.com/dsoprea/go-index-audit
modulepackage
0.0.0-20200527042233-1a867eab2dbc
Repository: https://github.com/dsoprea/go-index-audit.git
Documentation: pkg.go.dev

# README

Build Status Coverage Status GoDoc Go Report Card

Overview

This tool is a workflow optimization for Go module development.

When you are pushing changes to one module and will then need to bump its revision in the dependencies of another module, you will typically need to wait between five and forty minutes for the Go Proxy to represent the change and for "go get -u" to then see it and be able to update dependencies with it.

The primary purpoe of this tool is to block until the version reported by the Index is equal to or newer than your local repository. This also works for private Proxy implementations/instances.

Usage

$ go run command/go-wait-for-index/main.go github.com/dsoprea/go-exif
$

Get more information by printing verbosity:

$ go run command/go-wait-for-index/main.go -v github.com/dsoprea/go-exif
2020/05/24 02:15:56 main.main: [DEBUG]  Package path: [/home/doprea/development/go/src/github.com/dsoprea/go-exif]
2020/05/24 02:15:56 main.main: [DEBUG]  Current commit: REVISION=[1a12aec48f9023351e9c08b9bb7dd381e47233e9] TIMESTAMP=[2020-05-20 15:12:04 -0400 -0400]
2020/05/24 02:15:57 main.main: [INFO]  Index matches local revision: INDEX=[1a12aec48f90] LOCAL=[1a12aec48f9023351e9c08b9bb7dd381e47233e9]
2020/05/24 02:15:57 main.main: [DEBUG]  Wait time: [281.851456ms]

See the command-line help for more information.

# Packages

No description provided by the author

# Functions

GetVcs returns a version-control accessor given a name for one.
NewModuleVersionFromRaw returns a ModuleVersion instance from the raw phrase.
NewProxyClient returns a new ProxyClient struct.

# Structs

CachedModuleInfo is the information currently advertised for a module.
Git provides a VCS implementation for Git.
ModuleVersion describes the components of the reported version.
Package manages project package information.
ProxyClient knows how to hit the globalpublic Go Proxy endpoint.

# Interfaces

Vcs describes an interface that knows how to reads version-control from a package.

# Type aliases

ModuleVersionPhrase is a string that knows how to parse itself into components.