lru: github.com/tychoish/lru/buildscripts/vendoring Index | Files

package vendoring

import "github.com/tychoish/lru/buildscripts/vendoring"

Package vendoring provides a several variables used in vendoring buildscripts and function that reports (without any external dependencies) if the current environment requires legacy-style vendoring, or if its safe to use new-style vendoring.

Index

Package Files

vendoring.go

Variables

var (
    // Path to the vendored gopath component.
    Path = filepath.Join("build", "vendor")

    // Path to the legacy vendor source directory.
    Src = filepath.Join(Path, "src")
)

func NeedsLegacy Uses

func NeedsLegacy() bool

NeedsLegacy determines what kind vendoring system to use. Returns true when using pre-go1.5 vendoring, and false otherwise.

Package vendoring imports 6 packages (graph). Updated 2016-10-21. Refresh now. Tools for package owners.