build: bldy.build/build Index | Files | Directories

package build

import "bldy.build/build"

Package build defines build target and build context structures

Index

Package Files

build.go status_string.go

Variables

var (
    HostPlatform    = label.Label("@bldy//platforms:host")
    DefaultPlatform = HostPlatform
)

type Rule Uses

type Rule interface {
    Name() string
    Dependencies() []label.Label
    Outputs() []string
    Hash() []byte
    Build(*executor.Executor) error
    Platform() label.Label
    Workspace() workspace.Workspace
}

Rule defines the interface that rules must implement for becoming build targets.

type Status Uses

type Status int

go:generate stringer -type=Status Status represents a nodes status.

const (
    // Success is success
    Success Status = iota
    // Fail is a failed job
    Fail
    // Pending is a pending job
    Pending
    // Started is a started job
    Started
    // Fatal is a fatal crash
    Fatal
    // Warning is a job that has warnings
    Warning
    // Building is a job that's being built
    Building
)

func (Status) String Uses

func (i Status) String() string

type VM Uses

type VM interface {
    GetTarget(label.Label) (Rule, error)
}

VM seperate the parsing and evauluating targets logic from rest of bldy so we can implement and use new grammars like jsonnet or go it self.

Directories

PathSynopsis
builder
executor
graphPackage graph parses and generates build graphs
internalPackage internal is used for registering types in build, it had no clear place in other packages to go which is why it gets it's own package
label
namespace
namespace/docker
namespace/host
postprocessorPackage builder parses build graphs and coordinates builds
project
racyPackage racy deals with file cryptography
workspace

Package build imports 4 packages (graph) and is imported by 12 packages. Updated 2018-10-29. Refresh now. Tools for package owners.