Skip to content

Instantly share code, notes, and snippets.

@SpotlightKid
Created October 12, 2026 16:58
Show Gist options
  • Select an option

  • Save SpotlightKid/155db14a0d79da39390e4c6d8c09e378 to your computer and use it in GitHub Desktop.

Select an option

Save SpotlightKid/155db14a0d79da39390e4c6d8c09e378 to your computer and use it in GitHub Desktop.
Test example to demonstrate `taskrequires` regression in nimble >= 0.22.0
# 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
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