Files
gyandoot-release/install.sh
Tara Menon d7f66bb855 fix(install): use prebuilt binary or clone source — never fails with 'no workspace'
Root cause: gyandoot-release repo has no Cargo.toml, so 'build_gyandoot()'
failed with 'Cargo workspace not found'. The installer assumed source code.

Fix: ensure_gyandoot_binary() — three-tier resolution:
1. Check for Cargo workspace → build from source (gyandoot-v2 repo)
2. Check linux/macos/windows/ dir for prebuilt binary (gyandoot-release)
3. Clone gyandoot-v2 source repo and build from scratch (fallback)

Also: install_binary() now takes a binary path parameter instead of
hardcoding target/release/gyandoot
2026-06-13 18:46:50 +05:30

21 KiB
Executable File