Skip to content

Conversation

@feat7
Copy link
Owner

@feat7 feat7 commented Dec 25, 2025

Summary

Fixes issue where pip install ingestkit and npm install ingestkit don't always download the Go binary (pip wheels bypass post-install hooks, npm --ignore-scripts skips postinstall).

Changes

Python

  • Add lazy download: when CLI runs and binary not found, auto-download from GitHub releases
  • Check both PATH and ~/.local/bin for the binary
  • Add proper stdout flushing so download progress shows before os.execvp
  • Bump version to 0.1.8

npm

  • Read VERSION from package.json instead of hardcoding (was stuck at 0.1.0)
  • Add lazy download fallback to CLI wrapper
  • Export downloadBinary for reuse
  • Bump version to 0.1.8

.gitignore

  • Add exception for packages/npm/bin/ (contains JS wrapper, not compiled binary)

Test Plan

  • Python: Remove binary, run ingestkit --help - downloads and works
  • Python: Run again - uses cached binary without re-downloading
  • npm: Test lazy download flow

Python:
- Auto-download Go binary from GitHub releases when not found
- Fixes pip wheel install not triggering post-install hooks
- Add proper stdout flushing for download progress messages

npm:
- Read version from package.json instead of hardcoding
- Add lazy download fallback to CLI wrapper
- Export downloadBinary for reuse

Both packages bumped to version 0.1.8
@feat7 feat7 force-pushed the fix/python-lazy-download branch from d144dd8 to 5d49f82 Compare December 25, 2025 18:10
@feat7 feat7 merged commit 140920b into main Dec 25, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants