You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if validateRange and verRange.kind notin {verSpecial, verAny} or options.isVNext:
527
+
if validateRange and verRange.kind notin {verSpecial, verAny} ornotoptions.isLegacy:
528
528
## Makes sure that the downloaded package's version satisfies the requested
529
529
## version range.
530
530
pkginfo =if options.satResult.pass in {satNimSelection, satFallbackToVmParser}: #TODO later when in vnext we should just use this code path and fallback inside the toRequires if we can
&"Error reading tag {tag}: for package {name}. This may not be relevant as it could be an old version of the package. \n{e.msg}",
617
617
HighPriority)
618
-
ifnot (options.isVNextand options.satResult.pass == satNimSelection and options.satResult.declarativeParseFailed):
618
+
ifnot (notoptions.isLegacyand options.satResult.pass == satNimSelection and options.satResult.declarativeParseFailed):
619
619
#Dont save tagged versions if we are in vNext and the declarative parser failed as this could cache the incorrect versions.
620
620
#its suboptimal in the sense that next packages after failure wont be saved in the first past but there is a guarantee that there is a second pass in the case
621
621
#the declarative parser fails so they will be saved then.
--parser:declarative|nimvm Use the declarative parser or the nimvm parser (default).
283
284
--features Activate features. Only used when using the declarative parser.
284
285
--ignoreSubmodules Ignore submodules when cloning a repository.
285
-
--vnext Temporary flag (not shipped) to use the new code path where we assume solver is SAT and declarative parser are enabled. Later on, when both are enabled `vnext` code path will be used.
286
+
--legacyUse the legacy code path (pre nimble 1.0.0)
if installInstructions ==0and pkgInfo.bin.len >0and pkgInfo.basicInfo.name !="nim"andnotoptions.isVNext: #dont skip nim files for vnext. We build in the install directory
264
+
if installInstructions ==0and pkgInfo.bin.len >0and pkgInfo.basicInfo.name !="nim"and options.isLegacy: #dont skip nim files for vnext. We build in the install directory
265
265
pkgInfo.skipExt.add("nim")
266
266
267
267
# When a package doesn't specify a `srcDir` it's fair to assume that
0 commit comments