Created
October 12, 2026 16:58
-
-
Save SpotlightKid/155db14a0d79da39390e4c6d8c09e378 to your computer and use it in GitHub Desktop.
Test example to demonstrate `taskrequires` regression in nimble >= 0.22.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compiles with "nimble clitest" on nimble 0.20.1, but fails to install cligen with nimble 0.22.0+ | |
| import std/strformat | |
| proc hello(name="Joe", args: seq[string]): int = | |
| ## Say hello | |
| echo &"Hello, {name}" | |
| result = 1 | |
| import cligen; dispatch hello |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version = "0.1.0" | |
| author = "Christopher Arndt" | |
| description = "Test taskrequires dependencies" | |
| license = "MIT" | |
| # Dependencies | |
| requires "nim >= 2.2.6" | |
| taskrequires "clitest", "cligen" | |
| task clitest, "Build CLI test": | |
| selfExec("compile cli.nim") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment