Terminate copy iteration when hitting in-place nimbleDir (#429)

* terminate copy iteration when hitting in-place nimbleDir; fixes #428

* investigate travis issue

* more investigations

* more investigations

* fix nim version issue
This commit is contained in:
Fabian Keller 2017-12-22 00:15:03 +01:00 committed by Dominik Picheta
commit 209fca53e7
3 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,10 @@
# Package
version = "0.1.0"
author = "Author"
description = "dummy"
license = "MIT"
# Dependencies
requires "nim >= 0.17.0"

View file

@ -354,6 +354,13 @@ test "issue #338":
cd "issue338":
check execNimble("install", "-y").exitCode == QuitSuccess
test "issue #428":
cd "issue428":
# Note: Can't use execNimble because it patches nimbleDir
check execCmdEx(nimblePath & " -y --nimbleDir=./nimbleDir install").exitCode == QuitSuccess
check dirExists("nimbleDir/pkgs/dummy-0.1.0")
check(not dirExists("nimbleDir/pkgs/dummy-0.1.0/nimbleDir"))
test "can list":
check execNimble("list").exitCode == QuitSuccess