Commit 310987b
committed
fix: git URLs working with bootstrap-parallel
The bootstrap-parallel command failed when top-level requirements were
specified as git URLs. During the bootstrap phase, git URLs were
correctly stored in the dependency graph, but the build-parallel phase
reconstructed requirements as name==version, losing the URL
information. This caused the system to treat local directory paths as
HTTP URLs, resulting in invalid URL errors.
Changes:
- Add get_top_level_requirement() method to DependencyGraph to retrieve
original requirement specifications from ROOT node edges
- Modify build_parallel() to use original top-level requirements when
available, preserving git URLs during parallel builds
- Add URL parsing logic to download_git_source() to extract @ref from
git URLs like repo.git@5.2.0
This fix enables nightly build pipelines that rely on git URLs with
the bootstrap-parallel command for faster builds.
Now #762 can be revisited.
Fixes: #761
Co-authored-by: Claude <claude@anthropic.com>
Signed-off-by: Ioannis Angelakopoulos <iangelak@redhat.com>1 parent 74b0af4 commit 310987b
3 files changed
+37
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
700 | 712 | | |
701 | 713 | | |
702 | 714 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
355 | 368 | | |
356 | 369 | | |
357 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
207 | 218 | | |
208 | 219 | | |
209 | 220 | | |
| |||
0 commit comments