workdir

package
v12.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrDownloadSource

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

func (ErrDownloadSource) Error

func (e ErrDownloadSource) Error() string

func (*ErrDownloadSource) Unwrap

func (e *ErrDownloadSource) Unwrap() error

type Hook

type Hook struct {
	Name   string
	Hookfn HookFn
	Type   HookType
}

type HookFn

type HookFn func(ctx context.Context, run *runtime.Runtime, w io.Writer,
	pkgbuildDirsByBase map[string]string, installed mapset.Set[string],
) error

type HookType

type HookType string
const (
	// PreDownloadSourcesHook is called before sourcing a package
	PreDownloadSourcesHook HookType = "pre-download-sources"
)

type Preparer

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

func NewPreparer

func NewPreparer(dbExecutor db.Executor, cmdBuilder exe.ICmdBuilder,
	cfg *settings.Configuration, logger *text.Logger,
) *Preparer

func NewPreparerWithoutHooks

func NewPreparerWithoutHooks(dbExecutor db.Executor, cmdBuilder exe.ICmdBuilder,
	cfg *settings.Configuration, logger *text.Logger, downloadSources bool,
) *Preparer

func (*Preparer) PrepareWorkspace

func (preper *Preparer) PrepareWorkspace(ctx context.Context,
	run *runtime.Runtime, targets []map[string]*dep.InstallInfo,
) (map[string]string, error)

func (*Preparer) Present

func (preper *Preparer) Present(targets []map[string]*dep.InstallInfo)

func (*Preparer) Run

func (preper *Preparer) Run(ctx context.Context, run *runtime.Runtime,
	targets []map[string]*dep.InstallInfo,
) (pkgbuildDirsByBase map[string]string, err error)

func (*Preparer) ShouldCleanAURDirs

func (preper *Preparer) ShouldCleanAURDirs(run *runtime.Runtime, pkgBuildDirs map[string]string) build.PostInstallHookFunc

func (*Preparer) ShouldCleanMakeDeps

func (preper *Preparer) ShouldCleanMakeDeps(run *runtime.Runtime, cmdArgs *parser.Arguments) build.PostInstallHookFunc

Jump to

Keyboard shortcuts

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