base

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package base contains common functions for all builders.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChTimes

func ChTimes(build config.Build, tpl *tmpl.Template, a *artifact.Artifact) error

ChTimes sets the mod time for the artifact path, if a mod timestamp is set in the build.

func Exec

func Exec(ctx context.Context, command []string, env []string, dir string) error

Exec executes the given command with the given env in the given dir, handling output and errors.

func TemplateEnv

func TemplateEnv(input []string, tpl *tmpl.Template) ([]string, error)

TemplateEnv templates the build.Env and returns it.

func ValidateNonGoConfig

func ValidateNonGoConfig(build config.Build, opts ...ValidateOption) error

ValidateNonGoConfig makes sure that Go-specific configurations are not set.

func WithBuildMode

func WithBuildMode(o *options)

Types

type ValidateOption

type ValidateOption func(o *options)

Jump to

Keyboard shortcuts

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