Skip to content

Conversation

@jmgomez
Copy link
Collaborator

@jmgomez jmgomez commented Dec 9, 2025

No description provided.

- 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
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.
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.
@jmgomez jmgomez merged commit 22b0764 into nim-lang:master Dec 10, 2025
10 of 11 checks passed
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