Skip to content

Commit 6eabcb5

Browse files
authored
Dont rerun when the declarative parser fails and we are in nimSelection pass. (#1437)
1 parent 78a906b commit 6eabcb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nimblepkg/vnext.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ proc solvePackagesWithSystemNimFallback*(
168168
options.satResult.pkgsToInstall, options,
169169
options.satResult.output, options.satResult.solvedPkgs)
170170
#Optimization: dont rerun when the declarative parser fails and we are in nimSelection pass.
171-
if options.satResult.solvedPkgs.len == 0 and systemNimPass:
171+
if options.satResult.solvedPkgs.len == 0 and systemNimPass and not (options.satResult.declarativeParseFailed and options.satResult.pass == satNimSelection):
172172
# If the first pass failed, we will retry without the systemNim as a hard requirement
173173
result = solvePackages(rootPackage, pkgList,
174174
options.satResult.pkgsToInstall, options,

0 commit comments

Comments
 (0)