Skip to content

fix(resolver): load registry files when the root path is dot-prefixed - #1666

Open
NimrodAvni78 wants to merge 2 commits into
open-telemetry:mainfrom
NimrodAvni78:fix/loader-dot-rooted-registry
Open

fix(resolver): load registry files when the root path is dot-prefixed#1666
NimrodAvni78 wants to merge 2 commits into
open-telemetry:mainfrom
NimrodAvni78:fix/loader-dot-rooted-registry

Conversation

@NimrodAvni78

@NimrodAvni78 NimrodAvni78 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #1558

The directory walker pruned the registry root when its final path component started with a dot (e.g. -r ., or a .-named registry dir), because walkdir yields the root as an entry whose file_name is "." and is_hidden matched it. Exempt the root (depth 0) from the hidden filter so a dot-rooted registry loads its own spec files while genuinely hidden sub-entries stay skipped.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Aug 4, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-08-04 14:26 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

The directory walker pruned the registry root when its final path
component started with a dot (e.g. `-r .`, or a `.`-named registry dir),
because walkdir yields the root as an entry whose file_name is "." and
is_hidden matched it. Exempt the root (depth 0) from the hidden filter so
a dot-rooted registry loads its own spec files while genuinely hidden
sub-entries stay skipped.
@NimrodAvni78
NimrodAvni78 force-pushed the fix/loader-dot-rooted-registry branch from a1d97c2 to 0f4371d Compare August 4, 2026 05:58
@NimrodAvni78
NimrodAvni78 marked this pull request as ready for review August 4, 2026 06:05
@NimrodAvni78
NimrodAvni78 requested a review from a team as a code owner August 4, 2026 06:05
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.4%. Comparing base (f7b63a0) to head (4484f77).

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1666     +/-   ##
=======================================
- Coverage   81.4%   81.4%   -0.1%     
=======================================
  Files        131     131             
  Lines      11714   11714             
=======================================
- Hits        9537    9536      -1     
- Misses      2177    2178      +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Explicit imports resolve to zero against a dependency, but --include-unreferenced works

1 participant