Skip to content

fix: Doctor falsely detects stale build in other monorepos#138

Merged
jdutton merged 3 commits intomainfrom
fix-doctor-source-tree-detection
Feb 27, 2026
Merged

fix: Doctor falsely detects stale build in other monorepos#138
jdutton merged 3 commits intomainfrom
fix-doctor-source-tree-detection

Conversation

@jdutton
Copy link
Owner

@jdutton jdutton commented Feb 27, 2026

Summary

  • The CLI build status check in vv doctor assumed any repo with packages/cli/package.json was the vibe-validate source tree
  • This caused false "Build is stale: running v0.19.0-rc.13, source v0.1.15-rc.5" errors when running from other monorepos (e.g., vibe-agent-toolkit) that also have a packages/cli/ directory
  • Now verifies the package name is @vibe-validate/cli before comparing versions

Test plan

  • Added test: should skip check when packages/cli exists but is not vibe-validate
  • Existing test updated to include name field in mock package.json
  • Full pnpm validate passes

🤖 Generated with Claude Code

jdutton and others added 2 commits February 27, 2026 12:53
…ges/cli

The CLI build status check assumed any repo with packages/cli/package.json
was the vibe-validate source tree. This caused false "Build is stale"
errors when running `vv doctor` from other monorepos (e.g., vibe-agent-toolkit)
that also have a packages/cli/ directory.

Now verifies the package name is @vibe-validate/cli before comparing versions.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.72%. Comparing base (5ed511a) to head (a608b76).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #138   +/-   ##
=======================================
  Coverage   85.72%   85.72%           
=======================================
  Files         115      115           
  Lines       14903    14910    +7     
  Branches     3215     3217    +2     
=======================================
+ Hits        12775    12782    +7     
  Misses       2128     2128           

☔ View full report in Codecov by Sentry.
📢 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.

Extract mockCliBuildSyncFs helper to eliminate duplication between
build sync tests. Normalizes backslashes for Windows compatibility.

Co-Authored-By: Claude <noreply@anthropic.com>
@sonarqubecloud
Copy link

@jdutton jdutton merged commit 4941e68 into main Feb 27, 2026
9 checks passed
@jdutton jdutton deleted the fix-doctor-source-tree-detection branch February 27, 2026 19:21
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