cache

package
v0.0.0-...-4acdcbd Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Mu must be held while using the cache importer.

Functions

func GetGbProjectPaths

func GetGbProjectPaths(ctx *PackedContext, filename string) (string, string)

GetGbProjectPaths checks whether we'are in a gb project and returns gbroot and gbvendor

func NewImporter

func NewImporter(ctx *PackedContext, filename string, fallbackToSource bool, logger func(string, ...interface{})) types.ImporterFrom

func SamePath

func SamePath(a, b string) bool

SamePath checks two file paths for their equality based on the current filesystem

Types

type PackedContext

type PackedContext struct {
	GOARCH        string
	GOOS          string
	GOROOT        string
	GOPATH        string
	CgoEnabled    bool
	UseAllFiles   bool
	Compiler      string
	BuildTags     []string
	ReleaseTags   []string
	InstallSuffix string
}

PackedContext is a copy of build.Context without the func fields.

TODO(mdempsky): Not sure this belongs here.

func PackContext

func PackContext(ctx *build.Context) PackedContext

Jump to

Keyboard shortcuts

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