Skip to content

Commit

Permalink
Prevents nimble to fail when reading a package
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Nov 25, 2024
1 parent fe1295f commit a0931d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nimblepkg/nimblesat.nim
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,10 @@ proc getPackageMinimalVersionsFromRepo*(repoDir, pkgName: string, downloadMethod
return taggedVersions.get.versions
gitFetchTags(repoDir, downloadMethod)
#First package must be the current one
result.add getPkgInfo(repoDir, options).getMinimalInfo(options)
try:
result.add getPkgInfo(repoDir, options).getMinimalInfo(options)
except CatchableError as e:
displayWarning(&"Error getting package info for {pkgName}: {e.msg}", HighPriority)
let tags = getTagsList(repoDir, downloadMethod).getVersionList()
var checkedTags = 0
for (ver, tag) in tags.pairs:
Expand Down

0 comments on commit a0931d3

Please sign in to comment.