Help us shape the future of Go! Take the 2026 Go Developer Survey

builders

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 10 Imported by: 6

Documentation

Overview

Package builders provides file-level dependency tracking for incremental agent builds.

Dependency declarations enumerate files (and globs) that an artifact depends on; UpdateCache snapshots their mtimes and Updated reports whether anything changed since the last snapshot. This lets agents skip rebuilds when nothing relevant has changed — the same idea as make, scoped per-agent and persisted to the local cache directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDependenciesSummary added in v0.1.21

func MakeDependenciesSummary(deps *Dependencies) string

MakeDependenciesSummary outputs a summary of the dependencies

func MakeDependencySummary added in v0.1.22

func MakeDependencySummary(dep *Dependency) string

MakeDependencySummary outputs a summary of the dependency

Types

type AcceptChange added in v0.1.25

type AcceptChange func(ctx context.Context) error

type Dependencies added in v0.1.20

type Dependencies struct {
	Name       string
	Components []*Dependency
	// contains filtered or unexported fields
}

func NewDependencies added in v0.1.20

func NewDependencies(name string, components ...*Dependency) *Dependencies

func (*Dependencies) AddDependencies added in v0.1.20

func (dep *Dependencies) AddDependencies(dependencies ...*Dependency) *Dependencies

AddDependencies adds dependencies

func (*Dependencies) All added in v0.1.24

func (dep *Dependencies) All() []string

func (*Dependencies) Clone added in v0.1.20

func (dep *Dependencies) Clone() *Dependencies

func (*Dependencies) Hash added in v0.1.20

func (dep *Dependencies) Hash(ctx context.Context) (string, error)

func (*Dependencies) LoadHash added in v0.1.20

func (dep *Dependencies) LoadHash(ctx context.Context) string

func (*Dependencies) Localize added in v0.1.20

func (dep *Dependencies) Localize(root string)

func (*Dependencies) Present added in v0.1.33

func (dep *Dependencies) Present(ctx context.Context, dir string) []string

func (*Dependencies) String added in v0.1.33

func (dep *Dependencies) String() string

func (*Dependencies) UpdateCache added in v0.1.25

func (dep *Dependencies) UpdateCache(ctx context.Context) error

func (*Dependencies) Updated added in v0.1.20

func (dep *Dependencies) Updated(ctx context.Context) (bool, error)

func (*Dependencies) WithCache added in v0.1.39

func (dep *Dependencies) WithCache(location string) *Dependencies

func (*Dependencies) WriteHash added in v0.1.20

func (dep *Dependencies) WriteHash(ctx context.Context, hash string) error

type Dependency

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

func NewDependency added in v0.1.6

func NewDependency(components ...string) *Dependency

func (*Dependency) Components

func (dep *Dependency) Components() []string

func (*Dependency) Hash added in v0.1.4

func (dep *Dependency) Hash(ctx context.Context) (string, error)

func (*Dependency) Keep added in v0.1.20

func (dep *Dependency) Keep(path string) bool

func (*Dependency) Localize added in v0.1.20

func (dep *Dependency) Localize(dir string) *Dependency

func (*Dependency) WithPathSelect added in v0.1.20

func (dep *Dependency) WithPathSelect(sel shared.PathSelect) *Dependency

Jump to

Keyboard shortcuts

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