deputil

package
v0.0.0-...-18074f4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorDepNoFound1     = errutil.NewFactory("dependency %q not found")
	ErrorDepRevMismatch4 = errutil.NewFactory("dependency %q revision expected %q but got %q in %q")
)

errors

View Source
var (
	ErrorWarning                 = errutil.NewFactory("warning")
	ErrorFetchFailed1            = errutil.NewFactory("fetch package %q failed")
	ErrorRestoreFailed1          = errutil.NewFactory("restore package %q failed")
	ErrorRestoreSubmoduleFailed1 = errutil.NewFactory("restore submodule of %q failed")
)

errors

View Source
var (
	ErrorDepRedundant1 = errutil.NewFactory("dependency %q in Godeps but not used")
)

errors

View Source
var (
	ErrorGetRepoInfo1 = errutil.NewFactory("get repository info failed for %q")
)

errors

Functions

func Check

func Check(dir string, all bool) (err error)

Check package dependency version by package Godeps.json

func CheckRedundant

func CheckRedundant(dir string) (err error)

CheckRedundant check Check redundant packages in Godeps but not used

func Restore

func Restore(dir string, all bool, tovendor bool) (err error)

Restore package dependency by package Godeps.json

Types

type JSON

type JSON struct {
	Deps []depsType `json:",omitempty"`
	// contains filtered or unexported fields
}

JSON contains godeps config json information

func NewJSON

func NewJSON(dir string) (result JSON, err error)

NewJSON create godeps json config by analyzing dir

Jump to

Keyboard shortcuts

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