go-mod-dep-source-finder

command module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

README

go-mod-dep-source-finder

Given dependencies from go list, retrieves the URL of each dependency matching the versions.

Example

# Get the URL of a single dependency
#
go-mod-dep-source-finder 'golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2' | jq
{
  "original": "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2",
  "discovered": "https://go.googlesource.com/crypto/+/c2843e01d9a2/"
}

# Get the URL of all of your dependencies
#
go list -m all | tail -n +2 | go-mod-dep-source-finder -
...

Install

Latest using go

Having $GOPATH/bin in your $PATH:

go get -u github.com/cirocosta/go-mod-dep-source-finder
Stable

Binaries are distributed through GitHub releases.

TODO

Docker

Container images are continuously shipped to DockerHub:

docker run \
  cirocosta/go-mod-dep-source-finder \
  go-mod-dep-source-finder \
  'golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2'

LICENSE

Apache 2 - see ./LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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