build

package
v0.0.0-...-2c887f5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(ctx context.Context, cfg Config) error

func Watch

func Watch(ctx context.Context, paths gravel.Paths) (chan string, error)

Types

type Action

type Action byte
const (
	Build   Action = iota // build
	Install               // install
)

func (Action) String

func (i Action) String() string

type BinaryOptions

type BinaryOptions struct {
	Enabled bool
}

type Config

type Config struct {
	Action  Action
	Options Options
	Paths   gravel.Paths
	Graph   types.Graph[resolve.Pkg]
	Plan    Plan
}

type DockerOptions

type DockerOptions struct {
	Enabled  bool
	Push     bool
	Registry string
	Org      string
}

type Options

type Options struct {
	Test   TestOptions
	Binary BinaryOptions
	Docker DockerOptions
}

type Plan

type Plan struct {
	Paths gravel.Paths  `json:"paths"`
	Test  []resolve.Pkg `json:"test"`
	Build []Target      `json:"build"`
}

func NewPlan

func NewPlan(paths gravel.Paths, graph types.Graph[resolve.Pkg], hashes resolve.Hashes, targets []string) (Plan, error)

type Target

type Target struct {
	resolve.Pkg
	Version *semver.Version
}

type TestOptions

type TestOptions struct {
	Enabled bool
}

Jump to

Keyboard shortcuts

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