binaries

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinDir

func BinDir(annaHome string) string

BinDir returns the tool binaries directory path.

func EnsureTools

func EnsureTools(annaHome string) error

EnsureTools extracts all embedded tool binaries to annaHome/bin/. Gzip-compressed binaries in the embed FS are decompressed on extraction. Already-extracted binaries are skipped. Safe for concurrent calls.

func ToolNames

func ToolNames() []string

ToolNames returns the names of all embedded tools for the current platform.

func ToolPath

func ToolPath(annaHome, name string) string

ToolPath returns the full path to a named tool binary, or empty if not embedded.

func VerifyTools

func VerifyTools(annaHome string) error

VerifyTools checks that every tool present in the embedded FS was successfully extracted to annaHome/bin. If the embedded FS has no tool archives (e.g. a dev build where pre-build dependency sync was not run), the check is skipped and nil is returned — the missing-binary error surfaces later when the tool is actually needed. Returns an error only when the FS is non-empty but one or more binaries are missing on disk after extraction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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