fixes #21730; adds pkgs2 as well when nimbleDir is set (#22234)

This commit is contained in:
ringabout
2023-07-07 18:40:29 +08:00
committed by GitHub
parent 54d7c9fdf8
commit 6ec10a4c91

View File

@@ -614,6 +614,8 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
var path = processPath(conf, arg, info, notRelativeToProj=true)
let nimbleDir = AbsoluteDir getEnv("NIMBLE_DIR")
if not nimbleDir.isEmpty and pass == passPP:
path = nimbleDir / RelativeDir"pkgs2"
nimblePath(conf, path, info)
path = nimbleDir / RelativeDir"pkgs"
nimblePath(conf, path, info)
of "nonimblepath", "nobabelpath":