Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db65e781ef | ||
|
|
fe52f9626a |
4 changed files with 34 additions and 1 deletions
|
|
@ -882,7 +882,7 @@ proc uninstall(options: Options) =
|
||||||
pkgsToDelete.incl pkg
|
pkgsToDelete.incl pkg
|
||||||
|
|
||||||
if pkgsToDelete.len == 0:
|
if pkgsToDelete.len == 0:
|
||||||
raise newException(NimbleError, "Failed uninstall - no packages selected")
|
raise newException(NimbleError, "Failed uninstall - no packages to delete")
|
||||||
|
|
||||||
var pkgNames = ""
|
var pkgNames = ""
|
||||||
for pkg in pkgsToDelete.items:
|
for pkg in pkgsToDelete.items:
|
||||||
|
|
|
||||||
14
tests/issue598/issue598.nimble
Normal file
14
tests/issue598/issue598.nimble
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Package
|
||||||
|
|
||||||
|
version = "0.1.0"
|
||||||
|
author = "Dominik Picheta"
|
||||||
|
description = "A new awesome nimble package"
|
||||||
|
license = "MIT"
|
||||||
|
srcDir = "src"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
|
||||||
|
requires "nim >= 0.16.0"
|
||||||
|
requires "https://github.com/nimble-test/packageb/"
|
||||||
7
tests/issue598/src/issue598.nim
Normal file
7
tests/issue598/src/issue598.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
# This is just an example to get you started. A typical library package
|
||||||
|
# exports the main API in this file. Note that you cannot rename this file
|
||||||
|
# but you can remove it if you wish.
|
||||||
|
|
||||||
|
proc add*(x, y: int): int =
|
||||||
|
## Adds two files together.
|
||||||
|
return x + y
|
||||||
|
|
@ -79,6 +79,18 @@ proc hasLineStartingWith(lines: seq[string], prefix: string): bool =
|
||||||
return true
|
return true
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
test "issues #598":
|
||||||
|
check execNimble(
|
||||||
|
"install", "-y",
|
||||||
|
"https://github.com/nimble-test/packageb@#9f3bd9f7ad7254d156e"
|
||||||
|
).exitCode == QuitSuccess
|
||||||
|
|
||||||
|
cd "issue598":
|
||||||
|
let (output, exitCode) = execNimble("install", "-n")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
test "caching of nims and ini detects changes":
|
test "caching of nims and ini detects changes":
|
||||||
cd "caching":
|
cd "caching":
|
||||||
var (output, exitCode) = execNimble("dump")
|
var (output, exitCode) = execNimble("dump")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue