You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(doctor): disable Semgrep's hanging version check (SEMGREP_ENABLE_VERSION_CHECK=0)
Reported on Linux: `semgrep --version` (1.164.0) prints the version and then hangs
on the update/version "phone home" check; SEMGREP_ENABLE_VERSION_CHECK=0 returns
normally. This blocked both `--doctor` and the scan's version probe.
- New exported withToolEnv() forces SEMGREP_ENABLE_VERSION_CHECK=0 for every
semgrep invocation (doctor version check, scan-path version probe, AND the
`--config auto` scan, which also triggers the check), unless the user set the
variable explicitly. No-op for other tools.
- Cap `--version` probes at 10s (VERSION_CHECK_TIMEOUT_MS, was 30s) so any future
tool hang can never block the doctor or a scan.
Verified: `--doctor` reports Semgrep 1.164.0 in ~5s. 171/171 - lint clean - typecheck 0.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments