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

inputgraph

package
v0.8.20-rc-0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package inputgraph implements dependency graph generation and cache-key hashing for earth targets without requiring full evaluation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseProjectCommand

func ParseProjectCommand(
	ctx context.Context, target domain.Target, log *conslogging.ConsoleLogger,
) (string, string, error)

ParseProjectCommand parses a project command from arguments.

Types

type Error

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

Error represents an error that occurred while loading an Earthfile target graph, with an associated source location.

func (*Error) Error

func (e *Error) Error() string

Error implements [error] interface, formatting the source location and message.

func (*Error) Unwrap

func (e *Error) Unwrap() error

Unwrap returns the underlying cause of the error.

type HashOpt

type HashOpt struct {
	OverridingVars *variables.Scope
	Log            *conslogging.ConsoleLogger
	Target         domain.Target
	BuiltinArgs    variables.DefaultArgs
}

HashOpt contains all of the options available to the hasher.

type Stats

type Stats struct {
	StartTime       time.Time
	TargetsHashed   int
	TargetCacheHits int
	TargetsVisited  int
	Duration        time.Duration
}

Stats contains some statistics about the hashing process.

func HashTarget

func HashTarget(ctx context.Context, opt HashOpt) ([]byte, Stats, error)

HashTarget produces a hash from an earth target.

Jump to

Keyboard shortcuts

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