Documentation
¶
Overview ¶
Package base contains common functions for all builders.
Index ¶
- func ChTimes(build config.Build, tpl *tmpl.Template, a *artifact.Artifact) error
- func Exec(ctx context.Context, command []string, env []string, dir string) error
- func TemplateEnv(input []string, tpl *tmpl.Template) ([]string, error)
- func ValidateNonGoConfig(build config.Build, opts ...ValidateOption) error
- func WithBuildMode(o *options)
- type ValidateOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChTimes ¶
ChTimes sets the mod time for the artifact path, if a mod timestamp is set in the build.
func Exec ¶
Exec executes the given command with the given env in the given dir, handling output and errors.
func TemplateEnv ¶
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)
Click to show internal directories.
Click to hide internal directories.