Skip to content

Add macOS global package crawling fallbacks and pyenv support#34

Merged
mikolalysenko merged 1 commit intomainfrom
macos-global-crawling
Mar 5, 2026
Merged

Add macOS global package crawling fallbacks and pyenv support#34
mikolalysenko merged 1 commit intomainfrom
macos-global-crawling

Conversation

@mikolalysenko
Copy link
Contributor

Summary

  • NPM crawler: Add find_node_dirs_sync() synchronous wildcard resolver and macOS fallback paths (Homebrew ARM/Intel, nvm, volta, fnm) with HashSet deduplication in get_global_node_modules_paths()
  • Python crawler: Add pyenv site-packages discovery via PYENV_ROOT env var (fallback $HOME/.pyenv) on macOS and Linux
  • E2E tests: Add #[cfg(target_os = "macos")] auto-discovery smoke tests for both npm and pypi that run scan -g --json without --global-prefix

Test plan

  • cargo test -p socket-patch-core --features cargo — 260 tests pass (7 new)
  • cargo test --features cargo — full suite passes, no regressions
  • cargo test -p socket-patch-cli --test e2e_npm -- --ignored test_npm_macos — macOS npm e2e
  • cargo test -p socket-patch-cli --test e2e_pypi -- --ignored test_pypi_macos — macOS pypi e2e

🤖 Generated with Claude Code

NPM crawler: add find_node_dirs_sync() helper and macOS fallback paths
(Homebrew, nvm, volta, fnm) with deduplication in get_global_node_modules_paths().
Python crawler: add pyenv site-packages discovery via PYENV_ROOT.
E2E tests: add macOS auto-discovery smoke tests for npm and pypi.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mikolalysenko mikolalysenko merged commit a55a915 into main Mar 5, 2026
11 checks passed
@mikolalysenko mikolalysenko deleted the macos-global-crawling branch March 5, 2026 00:16
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.

1 participant