Work around NimScript eval problems by caching better.
This commit is contained in:
parent
301a366dd2
commit
d9b174b7df
2 changed files with 1 additions and 1 deletions
|
|
@ -374,4 +374,5 @@ proc briefClone*(options: Options): Options =
|
|||
var newOptions = initOptions()
|
||||
newOptions.config = options.config
|
||||
newOptions.nimbleData = options.nimbleData
|
||||
newOptions.pkgInfoCache = options.pkgInfoCache
|
||||
return newOptions
|
||||
|
|
@ -268,7 +268,6 @@ proc readPackageInfo(nf: NimbleFile, options: Options,
|
|||
assert fileExists(nf)
|
||||
|
||||
# Check the cache.
|
||||
echo(nf, options.pkgInfoCache.hasKey(nf))
|
||||
if options.pkgInfoCache.hasKey(nf):
|
||||
return options.pkgInfoCache[nf]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue