Skip to content

Conversation

@httpdss
Copy link
Owner

@httpdss httpdss commented Aug 11, 2025

Closes #92

  • Prefer lightweight single-file fetch via raw.githubusercontent.com with configurable timeouts and retries.
  • Fallback to git clone/pull when raw fetch fails or network is denied.
  • Environment variables:
    • STRUCT_DENY_NETWORK=1 to skip HTTP attempts and use git fallback.
    • STRUCT_HTTP_TIMEOUT (seconds, default 10).
    • STRUCT_HTTP_RETRIES (default 2).
  • Preserves existing behavior when a local repo cache exists.
  • All tests pass locally (88).

…GitHub fetch with retries/timeouts; fallback to git clone/pull; support STRUCT_DENY_NETWORK, STRUCT_HTTP_TIMEOUT, STRUCT_HTTP_RETRIES (closes #92)
…eny-network, and existing cache behavior (refs #92)
@httpdss httpdss merged commit f278b93 into main Aug 11, 2025
3 checks passed
@httpdss httpdss deleted the feature/issue-92-github-efficient-fetch branch August 11, 2025 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Safer and more efficient GitHub content fetching

2 participants