Skip to content

Commit

Permalink
0.2.1: rm absent lazy paths by default; fixes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Dec 14, 2019
1 parent 2ea0c95 commit 161e0b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nimph.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.2.0"
version = "0.2.1"
author = "disruptek"
description = "nim package handler from the future"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/nimph/doctor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ proc doctor*(project: var Project; dry = true; strict = true): bool =
result = false
elif project.removeSearchPath(path):
info &"removed missing search path {path}"
elif excludeMissingPaths and project.excludeSearchPath(path):
elif excludeMissingSearchPaths and project.excludeSearchPath(path):
info &"excluded missing search path {path}"
else:
warn &"unable to remove search path {path}"
Expand All @@ -371,7 +371,7 @@ proc doctor*(project: var Project; dry = true; strict = true): bool =
result = false
elif project.removeSearchPath(path):
info &"removed missing nimblePath {path}"
elif excludeMissingPaths and project.excludeSearchPath(path):
elif excludeMissingLazyPaths and project.excludeSearchPath(path):
info &"excluded missing nimblePath {path}"
else:
warn &"unable to remove nimblePath {path}"
Expand Down
3 changes: 2 additions & 1 deletion src/nimph/spec.nim
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const
emptyRelease* {.strdefine.} = "#head"
defaultRemote* {.strdefine.} = "origin"
upstreamRemote* {.strdefine.} = "upstream"
excludeMissingPaths* {.booldefine.} = false
excludeMissingSearchPaths* {.booldefine.} = false
excludeMissingLazyPaths* {.booldefine.} = true
writeNimbleDirPaths* {.booldefine.} = false
shortDate* = initTimeFormat "yyyy-MM-dd"
defaultFlags*: set[Flag] = {Quiet, Strict}
Expand Down

0 comments on commit 161e0b5

Please sign in to comment.