Skip to content

Support WSL#186

Open
attiasas wants to merge 7 commits intojfrog:masterfrom
attiasas:wsl_support
Open

Support WSL#186
attiasas wants to merge 7 commits intojfrog:masterfrom
attiasas:wsl_support

Conversation

@attiasas
Copy link
Copy Markdown
Contributor

@attiasas attiasas commented Apr 16, 2026

feat(wsl): route Go, npm, and Yarn scans through WSL for UNC project paths

Depends on:

Summary

When the project directory is detected as a WSL-style UNC path (WslUtils.isWslPath), dependency scanning and component updates invoke Go, npm, and Yarn via wsl.exe with Linux paths (--cd, path translation) so Windows-hosted IDE plugins can resolve tooling inside WSL. Build dependencies are bumped to align with extractor support (build-info-extractor family including WslUtils, GoDriver WSL mode) and a newer gradle-dep-tree.

Changes

  • build.gradle: Set buildInfoVersion to 2.43.x-SNAPSHOT (comment notes sync with published extractors / WSL); bump gradle-dep-tree from 3.0.1 to 3.2.1.
  • Go: Pass WSL flag into GoDriver; extend GoScanWorkspaceCreator with runGoThroughWsl and WSL-mounted paths for go mod absolutizer run arguments when applicable; propagate from GoTreeBuilder / GoComponentUpdater; clarify missing Go executable errors with [WSL=…].
  • npm: NpmTreeBuilder and NpmComponentUpdater use CommandExecutor("wsl.exe", …) when isWsl, mirroring --cd / --exec npm invocation; parse npm ls --json output from WSL; isDriverInstalled / install paths branch on WSL vs NpmDriver.
  • Yarn: YarnDriver gains optional WSL mode (wsl.exe + --exec yarn), isYarnInstalled(File) for consistent --cd checks; YarnTreeBuilder / YarnComponentUpdater pass WSL flag from WslUtils.isWslPath(projectDir); error messages note [WSL=…].

@attiasas attiasas added the safe to test run tests label Apr 16, 2026
@github-actions github-actions Bot removed the safe to test run tests label Apr 16, 2026
@attiasas attiasas added improvement Automatically generated release notes safe to test run tests labels Apr 19, 2026
@github-actions github-actions Bot removed the safe to test run tests label Apr 19, 2026
@attiasas attiasas requested a review from a team April 30, 2026 12:28
@attiasas attiasas added the safe to test run tests label Apr 30, 2026
@github-actions github-actions Bot removed the safe to test run tests label Apr 30, 2026
@attiasas attiasas added the safe to test run tests label May 4, 2026
@github-actions github-actions Bot removed the safe to test run tests label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant