bsdkrun/binary

Locating the bsdkrun binary.

Resolution order, first match wins:

  1. an explicit override set with set_binary_path,
  2. the $BSDKRUN_BIN environment variable,
  3. bsdkrun on $PATH,
  4. an in-repo dev build — target/release/bsdkrun then target/debug/bsdkrun, searched from the current working directory upwards.

If nothing matches, resolve returns BinaryNotFound listing everything it looked at.

Values

pub fn candidates() -> List(String)

Every location resolve will consider, in priority order. Exposed so callers (and error messages) can report exactly what was searched.

pub fn reset_binary_path() -> Nil

Clear the override set by set_binary_path.

pub fn resolve() -> Result(String, error.Error)

Resolve the path to the bsdkrun binary.

pub fn set_binary_path(path: String) -> Nil

Force the SDK to use a specific bsdkrun binary, bypassing discovery. Useful in tests, or to run against a locally built binary.

Search Document