Skip to content

Add WSL locations to index#59

Merged
SUSTAPLE117 merged 1 commit into
mainfrom
maint/wslSupport
Jun 18, 2026
Merged

Add WSL locations to index#59
SUSTAPLE117 merged 1 commit into
mainfrom
maint/wslSupport

Conversation

@SUSTAPLE117

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Windows Subsystem for Linux (WSL) home-directory discovery so Bagel’s file index (and downstream secret scanning) can include Linux homes accessible from a Windows host, gated by a new file_index.scan_wsl config flag.

Changes:

  • Introduces a new pkg/wsl package to enumerate registered WSL distros (Windows) and generate UNC roots for their /home and /root directories.
  • Adds scan_wsl to FileIndexConfig with a default of true, and appends discovered WSL base dirs during file-index construction.
  • Adds unit tests for UNC candidate ordering and Docker Desktop distro skipping.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/wsl/wsl.go Defines UNC root candidates and filtering for system/internal distros.
pkg/wsl/wsl_windows.go Implements Windows registry-based distro discovery and UNC reachability probing.
pkg/wsl/wsl_other.go Provides non-Windows no-op stub for WSL discovery.
pkg/wsl/wsl_test.go Adds unit tests for UNC candidate ordering and distro skip logic.
pkg/models/config.go Adds ScanWSL to file index configuration model.
pkg/config/config.go Sets default file_index.scan_wsl to true.
pkg/collector/collector.go Appends WSL-discovered home roots to the file index base directories when enabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/wsl/wsl_windows.go
Comment thread pkg/wsl/wsl_windows.go
@SUSTAPLE117 SUSTAPLE117 marked this pull request as ready for review June 17, 2026 13:28
@SUSTAPLE117 SUSTAPLE117 requested a review from Franck-Boost June 17, 2026 13:28
@SUSTAPLE117 SUSTAPLE117 merged commit cbf3eb1 into main Jun 18, 2026
7 checks passed
@SUSTAPLE117 SUSTAPLE117 deleted the maint/wslSupport branch June 18, 2026 20:29
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.

3 participants