Commit 22b0764
authored
Improvements towards supporting big packages (nwaku) (#1532)
* Add PackageNotFoundError for specific error handling
- Add PackageNotFoundError exception type in common.nim
- Use PackageNotFoundError in download.nim when package is not found
- Catch PackageNotFoundError instead of CatchableError in nimblesat.nim
validation to only skip versions for truly missing packages
* Fix git checkout for version tags with v prefix
Some packages use 'v' prefixed tags (e.g., v0.1.0) while the version
in nimble is without prefix (0.1.0). When checkout fails, try again
with 'v' prefix as fallback.
* Prefer tagged releases over HEAD revision
Add specialized addUnique for PackageMinimalInfo that compares by
name and version only. This ensures when multiple nimble file
revisions exist for the same version tag, we keep the first one.
Change processing order in getPackageMinimalVersionsFromRepo and
getPackageMinimalVersionsFromRepoAsync to:
1. Process tagged versions first (added to result)
2. Add HEAD version last using addUnique
This ensures tagged releases take precedence over HEAD when both
have the same version, providing more reliable package metadata.
* Move updateSubmodules outside of the cache. Its faster and more reliable
(old pkgs may trigger potential errors)
* Improves SAT solver so it process versions on ascending order. Adds
version discovery option
* Some installation fixes.
* Adds a tests that proofs that waku's deps can be solved
* Fixes CI test1 parent 80c5afd commit 22b0764
File tree
6 files changed
+3248
-78
lines changed- src/nimblepkg
- tests
- packageMinimal
6 files changed
+3248
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
1046 | 1055 | | |
1047 | 1056 | | |
1048 | 1057 | | |
1049 | | - | |
| 1058 | + | |
1050 | 1059 | | |
1051 | 1060 | | |
1052 | 1061 | | |
| |||
0 commit comments