Fixes #501.
This commit is contained in:
parent
fe21329f3d
commit
225a0ef661
1 changed files with 6 additions and 2 deletions
|
|
@ -311,10 +311,14 @@ proc findNimbleFile*(dir: string; error: bool): string =
|
||||||
|
|
||||||
if result.splitFile.ext == ".nimble-link":
|
if result.splitFile.ext == ".nimble-link":
|
||||||
# Return the path of the real .nimble file.
|
# Return the path of the real .nimble file.
|
||||||
|
let nimbleLinkPath = result
|
||||||
result = readNimbleLink(result).nimbleFilePath
|
result = readNimbleLink(result).nimbleFilePath
|
||||||
if not fileExists(result):
|
if not fileExists(result):
|
||||||
raiseNimbleError("The .nimble-link file is pointing to a missing" &
|
let msg = "The .nimble-link file is pointing to a missing file: " & result
|
||||||
" file: " & result)
|
let hintMsg =
|
||||||
|
"Remove '$1' or restore the file it points to." % nimbleLinkPath
|
||||||
|
display("Warning:", msg, Warning, HighPriority)
|
||||||
|
display("Hint:", hintMsg, Warning, HighPriority)
|
||||||
|
|
||||||
proc getInstalledPkgsMin*(libsDir: string, options: Options):
|
proc getInstalledPkgsMin*(libsDir: string, options: Options):
|
||||||
seq[tuple[pkginfo: PackageInfo, meta: MetaData]] =
|
seq[tuple[pkginfo: PackageInfo, meta: MetaData]] =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue