deps

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package deps provides dependency checking and management for sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoInstall

func AutoInstall(ctx context.Context, dep sources.Dependency) error

AutoInstall attempts to install a dependency using its trusted source declaration, then verifies that the command is available.

func Check

Check verifies if a dependency is available on the system. It tries all CheckCommands in order and returns the first one that succeeds.

func CheckAll

func CheckAll(ctx context.Context, src dependencySource) map[string]sources.DependencyStatus

CheckAll checks all dependencies for a source. Returns a map of dependency name to status.

func GetMissingDeps

func GetMissingDeps(deps []sources.Dependency, statuses map[string]sources.DependencyStatus) []sources.Dependency

GetMissingDeps returns the unavailable dependencies.

func HasMissingDeps

func HasMissingDeps(statuses map[string]sources.DependencyStatus) bool

HasMissingDeps reports whether any dependency is unavailable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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