depinst

command module
v0.0.0-...-06d67f6 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: MIT Imports: 9 Imported by: 0

README

depinst

depinst is a support tool for golang/dep.

It builds to required packages in Gopkg.toml and saves binaries (mainly for CLI vendoring).

Installation

go get -u github.com/orisano/depinst

How to use

$ depinst -help
Usage of ./depinst:
  -dir string
    	bin directory (default "bin")
  -list
    	show required list
  -make
    	output makefile format
  -q	turn off output
  -target string
    	makefile target name (default "cli")
$ cat Gopkg.toml
required = [
    "golang.org/x/tools/cmd/stringer",
    "github.com/rakyll/statik",
    "github.com/rubenv/sql-migrate/sql-migrate",
]
$ depinst
depinst: running [go build -o bin/stringer ./vendor/golang.org/x/tools/cmd/stringer] ...
depinst: running [go build -o bin/statik ./vendor/github.com/rakyll/statik] ...
depinst: running [go build -o bin/sql-migrate ./vendor/github.com/rubenv/sql-migrate/sql-migrate] ...
$ ls -1 ./bin
sql-migrate*
statik*
stringer*

Use Case

Makefile
all: cli

.PHONY: all

.cli.deps: Gopkg.toml
	@depinst -make > $@

include .cli.deps

Author

Nao Yonashiro (@orisano)

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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