mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
- Remove duplicated RateLimitError, newGitHubRequest, newGitHubClient, checkRateLimit from internal/version — now uses internal/github client, which also fixes missing `gh auth token` fallback for version checks - Add GH_TOKEN as fallback in install.resolveToken() for GitHub platform, matching github.GetToken() resolution order (GITHUB_TOKEN → GH_TOKEN) - Add GH_TOKEN to sanitizeTokens() redaction list - Extract shared IsAuthError() in install/auth.go; push.go and wrapGitError() both delegate to it (adds "Access denied" coverage) - Consolidate shouldFallback*TrackedClone auth checks via isAuthOrAccessError() - Thread single *http.Client through search.Search() and all callees, reducing ~60 redundant TLS handshakes to connection-pooled reuse - Pass *http.Client to downloadFile() instead of creating per-file clients - Replace sourceHost() with extractHost() (same package, identical purpose) - Remove unused isGitRepo() alias; callers use IsGitRepo() directly