Commit 893bd3e
Fix lockfile resolution for local paths to prevent CI failures
Problem:
- CI was failing because yarn.lock contains version "0.0.0" for local links
- The resolve_version method was checking lockfiles before detecting local paths
- This caused "0.0.0" to be returned instead of the local path from package.json
Solution:
- Check if package.json version is a local path/URL BEFORE resolving from lockfiles
- Add local_path_or_url_version? helper method
- Skip lockfile resolution for local paths since they have placeholder versions
This fixes the CI failures where spec/dummy uses "link:.yalc/react-on-rails"
and yarn.lock contains version "0.0.0" for this local link.
All 65 tests still passing.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent aa6a04b commit 893bd3e
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
341 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
342 | 347 | | |
343 | 348 | | |
344 | 349 | | |
| |||
354 | 359 | | |
355 | 360 | | |
356 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
357 | 370 | | |
358 | 371 | | |
359 | 372 | | |
| |||
0 commit comments