dependencies

package
v2.8.16 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// InstallDir is the directory where dependency binaries (CLI, ccache) are installed.
	InstallDir = "/usr/local/bin"
)

Variables

This section is empty.

Functions

func EnsureAll

func EnsureAll(ctx context.Context, tools []Tool, logger log.Logger) error

EnsureAll checks each tool and installs it if missing.

Types

type Tool

type Tool struct {
	Name    string
	Version string
	Install func(ctx context.Context, logger log.Logger) error
}

Tool describes an external binary that needs to be available on PATH.

func CLITool

func CLITool() (Tool, error)

CLITool returns a Tool that installs the bitrise-build-cache binary matching the version embedded in the current binary's module dependencies. When the current process IS the CLI binary (e.g. dev builds via `go run`), it self-installs by copying the running executable to InstallDir.

func CcacheTool

func CcacheTool() Tool

CcacheTool returns a Tool that installs ccache.

func (Tool) IsInstalled

func (t Tool) IsInstalled() bool

IsInstalled returns true if the tool binary is found on PATH.

Jump to

Keyboard shortcuts

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