ninjago

package
v0.1.23-oss Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFile = ".ninjago.conf"

Variables

This section is empty.

Functions

func DenormalizeEnvVars

func DenormalizeEnvVars(envVars map[string]string, cwd string) []string

DenormalizeEnvVars expands the env vars by replacing CWD with the current working directory.

func NormalizeEnvVars

func NormalizeEnvVars(osVars []string, cwd string, keep func(string) bool) map[string]string

NormalizeEnvVars returns a map of environment variables that have been normalized to have "CWD" instead of the current working directory. The prefix "CWD/" is removed from the values to help match environments with absolute vs. relative paths (unless the value contains a path separator, in which case it is left unchanged). The keep function is used to filter environment variables. If keep returns true, the variable is included in the result.

func NormalizedEnvVars

func NormalizedEnvVars() map[string]string

NormalizedEnvVars returns a map of environment variables that have been normalized using the default ignore list.

func SkipNode

func SkipNode(n *graph.Node) bool

Skip building these nodes

Types

type ABFSBackend

type ABFSBackend struct {
	// contains filtered or unexported fields
}

func NewABFSBackend

func NewABFSBackend() *ABFSBackend

func (*ABFSBackend) ApplyIfCached

func (c *ABFSBackend) ApplyIfCached(step *build.Step) (bool, error)

ApplyIfCached implements backends.Backend.

func (*ABFSBackend) BuildInit

func (c *ABFSBackend) BuildInit(engine *build.Engine) error

BuildInit implements backends.Backend.

func (*ABFSBackend) Close

func (c *ABFSBackend) Close() error

func (*ABFSBackend) CreateDirs

func (c *ABFSBackend) CreateDirs(step *build.Step) error

CreateDirs implements backends.Backend.

func (*ABFSBackend) CreateRSP

func (c *ABFSBackend) CreateRSP(step *build.Step) error

CreateRSP implements backends.Backend.

func (*ABFSBackend) ExecLocal

func (c *ABFSBackend) ExecLocal(ctx context.Context, step *build.Step) build.ExecResult

ExecLocal implements backends.Backend.

func (*ABFSBackend) ExecRemote

func (c *ABFSBackend) ExecRemote(ctx context.Context, step *build.Step) build.ExecResult

ExecRemote implements backends.Backend.

func (*ABFSBackend) FinalizeBuild

func (c *ABFSBackend) FinalizeBuild(err error) error

FinalizeBuild implements backends.Backend.

func (*ABFSBackend) FinalizeStep

func (c *ABFSBackend) FinalizeStep(step *build.Step)

FinalizeStep implements backends.Backend.

func (*ABFSBackend) GetDeps

func (c *ABFSBackend) GetDeps(n *graph.Node) ([]string, error)

GetDeps implements backends.Backend.

func (*ABFSBackend) GraphLoaded

func (c *ABFSBackend) GraphLoaded(g *graph.Graph) error

GraphLoaded implements backends.Backend.

func (*ABFSBackend) GraphLoading

func (c *ABFSBackend) GraphLoading() error

GraphLoading implements backends.Backend.

func (*ABFSBackend) Init

func (c *ABFSBackend) Init(params *ninjaruntime.RunParameters, cmd *string, args *[]string) error

Init implements backends.Backend.

func (*ABFSBackend) IsClean

func (c *ABFSBackend) IsClean(step *build.Step) (bool, error)

IsClean implements backends.Backend.

func (*ABFSBackend) IsRemotable

func (c *ABFSBackend) IsRemotable(step *build.Step) bool

IsRemotable implements backends.Backend.

func (*ABFSBackend) MkdirAll

func (c *ABFSBackend) MkdirAll(dir string) error

func (*ABFSBackend) Parsed

func (c *ABFSBackend) Parsed(ninjas *ninja.ParsedFiles) error

Parsed implements backends.Backend.

func (*ABFSBackend) ReadNinjaFile

func (c *ABFSBackend) ReadNinjaFile(fileName string) ([]byte, parse.ReleaseFileFunc, error)

ReadNinjaFile implements backends.Backend.

func (*ABFSBackend) StoreResults

func (c *ABFSBackend) StoreResults(ctx context.Context, eval *Eval, resp *binding.EvalResponse) error

type Configuration

type Configuration struct {
	Chroot                  string
	CacheDir                string
	LocalOnly               bool
	FetchTimeout            time.Duration
	IgnoreEvalCacheRegexStr string         `json:"IgnoreEvalCacheRegex"`
	IgnoreEvalCacheRegex    *regexp.Regexp `json:"-"`
	LogMismatches           bool
	PSICPU                  float64
	PSIIO                   float64
	PSIMem                  float64
	OrderOnlyAsRegularInput bool
	NoFallbackIfRemoteFails bool
	EvalSalt                string
	EvalNoCache             bool
	NoARES                  bool
	RemoteBootstrap         bool
	RemoteCC                bool
	RemoteJava              bool
	RemoteRust              bool
	RemoteKotlin            bool
	RemoteMetalava          bool
	StrictTappingOff        bool
	PrefetchInputs          bool
	IgnoreSoongEnvAvail     bool
	SkipTapSoongBuild       bool
	ConcurrencyMultiplier   float64
}

func LoadConfig

func LoadConfig() *Configuration

func ReadConfig

func ReadConfig(configFile string) (*Configuration, error)

func (*Configuration) Write

func (c *Configuration) Write(p string) (retErr error)

type Eval

type Eval struct {
	// contains filtered or unexported fields
}

type FailedStep

type FailedStep struct {
	// contains filtered or unexported fields
}

type HashFetchReq

type HashFetchReq struct {
	// contains filtered or unexported fields
}

type HashStat

type HashStat = entities.HashStat

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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