Skip to content

Commit

Permalink
Set checkError = false in compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
demotomohiro committed Jan 7, 2020
1 parent a1abac6 commit 190402d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compiler/nimblecmd.nim
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ iterator chosen(packages: StringTableRef): string =

proc addNimblePath(conf: ConfigRef; p: string, info: TLineInfo) =
var path = p
let nimbleLinks = toSeq(walkPattern(p / "*.nimble-link"))
let nimbleLinks = toSeq(walkPattern(p / "*.nimble-link", checkError = false))
if nimbleLinks.len > 0:
# If the user has more than one .nimble-link file then... we just ignore it.
# Spec for these files is available in Nimble's readme:
Expand All @@ -121,7 +121,7 @@ proc addPathRec(conf: ConfigRef; dir: string, info: TLineInfo) =
var packages = newStringTable(modeStyleInsensitive)
var pos = dir.len-1
if dir[pos] in {DirSep, AltSep}: inc(pos)
for k,p in os.walkDir(dir):
for k,p in os.walkDir(dir, checkError = false):
if k == pcDir and p[pos] != '.':
addPackage(conf, packages, p, info)
for p in packages.chosen:
Expand Down
2 changes: 1 addition & 1 deletion compiler/packagehandling.nim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ proc getPackageName*(conf: ConfigRef; path: string): string =
#echo "from cache ", d, " |", packageCache[d], "|", path.splitFile.name
return conf.packageCache[d]
inc parents
for file in walkFiles(d / "*.nimble"):
for file in walkFiles(d / "*.nimble", checkError = false):
result = file.splitFile.name
break packageSearch
# we also store if we didn't find anything:
Expand Down

0 comments on commit 190402d

Please sign in to comment.