Skip to main content

find_harness

Function find_harness 

Source
pub fn find_harness() -> Result<PathBuf>
Available on crate feature async-client only.
Expand description

Locates the localharness binary.

The binary is distributed only inside the platform wheels on PyPI — it has no standalone release and no package manager will place it on PATH — so discovery is, in order:

  1. $ANTIGRAVITY_HARNESS_PATH, if set.
  2. localharness on PATH.

A Python install is deliberately not probed here; if the binary came from a wheel, point HarnessOptions::binary at <site-packages>/google/antigravity/bin/localharness, or extract it straight out of the wheel:

pip download google-antigravity --no-deps -d /tmp/ag
unzip -j /tmp/ag/*.whl 'google/antigravity/bin/localharness' -d ~/.local/bin