godl

command module
v0.0.0-...-17625c3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2017 License: MIT Imports: 3 Imported by: 0

README

godl - Download projects to you vendor directory

godl is a Go vendoring tool that optimizes for making small changes to a project's dependencies (e.g. updating a single dependency).

Unlike other tools, godl doesn't do analysis of dependencies, inspect source files, or interact with your GOPATH. Packages are downloaded one at a time so you can modify a single dependency without performing expensive operations like re-downloading all packages or performing static analysis on a large repo.

godl init
godl get golang.org/x/net feeb485667d1fdabe727840fe00adc22431bc86e
godl get gopkg.in/square/go-jose.v2 v2.1.0
godl get github.com/spf13/cobra # Defaults to latest

FAQ

Q: Since godl won't do it for me, how do I list all my projects dependencies?

A: Use go list.

go list -f '{{.Deps}}' | tr "[" " " | tr "]" " " | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'

Q: How do I download private repos?

A: Use the --remote flag to manually specify the remote repo.

godl get gopkg.in/square/go-jose.v2 v2.1.0 --remote [email protected]:square/go-jose.git

Subsequent calls to godl get that omit the --remote flag will default to the previous value.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd
Package cmd implements the command line interface for the godl tool.
Package cmd implements the command line interface for the godl tool.

Jump to

Keyboard shortcuts

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