Skip to content

Commit 6eb711b

Browse files
authored
Allows to continue if tag fetching fails Fixes #1309 (#1311)
1 parent d743974 commit 6eb711b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/nimblepkg/nimblesat.nim

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,9 +537,12 @@ proc getPackageMinimalVersionsFromRepo*(repoDir: string, name: string, version:
537537
try:
538538
removeDir(tempDir)
539539
copyDir(repoDir, tempDir)
540-
541-
gitFetchTags(tempDir, downloadMethod)
542-
let tags = getTagsList(tempDir, downloadMethod).getVersionList()
540+
var tags = initOrderedTable[Version, string]()
541+
try:
542+
gitFetchTags(tempDir, downloadMethod)
543+
tags = getTagsList(tempDir, downloadMethod).getVersionList()
544+
except CatchableError as e:
545+
displayWarning(&"Error fetching tags for {name}: {e.msg}", HighPriority)
543546

544547
try:
545548
result.add getPkgInfo(repoDir, options).getMinimalInfo(options)

0 commit comments

Comments
 (0)