Fixed nondeterminism in version sorting
This commit is contained in:
parent
88b4a9ed8a
commit
a247047089
1 changed files with 5 additions and 1 deletions
|
|
@ -630,9 +630,13 @@ proc listPaths(options: Options) =
|
|||
v.version = newVersion(pkgInfo.specialVersion)
|
||||
if nimbleLinkTargetPath.len == 0:
|
||||
v.path = options.getPkgsDir / (pkgInfo.name & '-' & pkgInfo.specialVersion)
|
||||
installed.add(v)
|
||||
else:
|
||||
# If we have a nimble-developed package, this is really the path we're
|
||||
# looking for.
|
||||
v.path = nimbleLinkTargetPath
|
||||
installed.add(v)
|
||||
installed = @[v]
|
||||
break
|
||||
else:
|
||||
display("Warning:", "No .nimble file found for " & path, Warning,
|
||||
MediumPriority)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue