binresolve

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package binresolve resolves the agentpaas-harness binary and Python SDK directory shared by the daemon pack path and the CLI install path.

The logic here is ported from the daemon's internal helpers (resolveHarnessBinary / resolveSDKDir) so both code paths stay in sync.

Index

Constants

This section is empty.

Variables

View Source
var Executable = os.Executable

Executable returns the path to the current executable. Tests may override it.

Functions

func HarnessBinary

func HarnessBinary() string

HarnessBinary finds the agentpaas-harness binary for container images. It prefers the linux/arm64 cross-compile (agentpaas-harness-linux) over the darwin/arm64 Mac binary (agentpaas-harness). Returns an empty string if not found; callers fall back to pack.BuildImage's own exec.LookPath and clear error.

func SDKDir

func SDKDir(harnessPath string) string

SDKDir finds the Python SDK directory (containing agentpaas_sdk) relative to the harness binary. The SDK lives in a "python/" subdirectory alongside the harness binary (e.g. /usr/local/bin → /usr/local/python). If not found there, it checks common repo locations. Returns "" if not found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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