build

package
v5.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2016 License: Apache-2.0 Imports: 22 Imported by: 48

Documentation

Overview

The build package houses the core functionality for actually building targets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(tid int, state *core.BuildState, label core.BuildLabel)

func OutputHash

func OutputHash(target *core.BuildTarget) ([]byte, error)

OutputHash calculates the hash of a target's outputs.

func RemoveOutputs

func RemoveOutputs(target *core.BuildTarget) error

RemoveOutputs removes all generated outputs for a rule.

func ReplaceSequences

func ReplaceSequences(target *core.BuildTarget, command string) string

Replace escape sequences in the given string.

func ReplaceTestSequences

func ReplaceTestSequences(target *core.BuildTarget, command string) string

Replace escape sequences in the given string when running a test.

func RuleHash

func RuleHash(target *core.BuildTarget, runtime, postBuild bool) []byte

RuleHash calculates a hash for the relevant bits of this rule that affect its output. Optionally it can include parts of the rule that affect runtime (most obviously test-time). Note that we have to hash on the declared fields, we obviously can't hash pointers etc. incrementality_test will warn if new fields are added to the struct but not here.

func RuntimeHash

func RuntimeHash(state *core.BuildState, target *core.BuildTarget) ([]byte, error)

RuntimeHash returns the target hash, source hash, config hash & runtime file hash, all rolled into one. Essentially this is one hash needed to determine if the runtime state is consistent.

Types

This section is empty.

Directories

Path Synopsis
go
Package buildgo contains utilities used by plz_go_test.
Package buildgo contains utilities used by plz_go_test.

Jump to

Keyboard shortcuts

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