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
## Makes sure that the downloaded package's version satisfies the requested
921
921
## version range.
922
-
pkginfo =if options.satResult.pass == satNimSelection: #TODO later when in vnext we should just use this code path and fallback inside the toRequires if we can
## Makes sure that the downloaded package's version satisfies the requested
1001
998
## version range.
1002
-
pkginfo =if options.satResult.pass == satNimSelection: #TODO later when in vnext we should just use this code path and fallback inside the toRequires if we can
displayWarning(&"Error getting package info for {name}: {e.msg}", HighPriority)
883
860
884
-
ifnot (options.satResult.pass == satNimSelection and options.satResult.declarativeParseFailed):
885
-
#Dont save tagged versions if the declarative parser failed as this could cache the incorrect versions.
886
-
#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
887
-
#the declarative parser fails so they will be saved then.
888
-
saveTaggedVersions(name, result, options)
861
+
saveTaggedVersions(name, result, options)
889
862
890
863
# Clean up tempDir if it was created
891
864
if tempDirCreated:
@@ -954,11 +927,7 @@ proc getPackageMinimalVersionsFromRepoAsync*(repoDir: string, pkg: PkgTuple, ver
954
927
# Fall back to checkout + VM parser if declarative parsing failed
displayWarning(&"Error getting package info for {name}: {e.msg}", HighPriority)
980
946
981
-
ifnot (options.satResult.pass == satNimSelection and options.satResult.declarativeParseFailed):
982
-
#Dont save tagged versions if the declarative parser failed as this could cache the incorrect versions.
983
-
#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
984
-
#the declarative parser fails so they will be saved then.
985
-
try:
986
-
saveTaggedVersions(name, result, options)
987
-
exceptCatchableErroras e:
988
-
displayWarning(&"Error saving tagged versions for {name}: {e.msg}", LowPriority)
947
+
try:
948
+
saveTaggedVersions(name, result, options)
949
+
exceptCatchableErroras e:
950
+
displayWarning(&"Error saving tagged versions for {name}: {e.msg}", LowPriority)
Copy file name to clipboardExpand all lines: src/nimblepkg/packageinfotypes.nim
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -110,8 +110,8 @@ type
110
110
111
111
SATPass*=enum
112
112
satNone
113
-
satLockFile #From a lock file. SAT is not ran.
114
-
satNimSelection #Declarative parser preferred. Fallback to VM parser if needed via bootstrapped nim
113
+
satLockFile #From a lock file. SAT is not run.
114
+
satSolving # SAT solver active, declarative parser with atomic VM fallback
115
115
satDone
116
116
117
117
NimResolved*=object
@@ -143,7 +143,6 @@ type
143
143
pass*: SATPass
144
144
installedPkgs*: seq[PackageInfo] #Packages installed in the current pass
145
145
buildPkgs*: seq[PackageInfo] #Packages that were built in the current pass
146
-
declarativeParseFailed*: bool
147
146
nimResolved*: NimResolved
148
147
bootstrapNim*: BootstrapNim#The nim that we are going to use if we dont have a nim resolved yet and the declarative parser failed. Notice this is required to Atomic Parser fallback (not implemented)
149
148
normalizedRequirements*: Table[string, string] #normalized -> old. Some packages are not published as nimble packages, we keep the url for installation.
0 commit comments