Skip to content

Commit

Permalink
fix issue #1158 (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
stoneface86 authored Nov 10, 2023
1 parent 4fbb96d commit bd9651a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimblepkg/nimscriptwrapper.nim
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ proc getNimsFile(scriptName: string, options: Options): string =
import system except getCommand, setCommand, switch, `--`, thisDir,
packageName, version, author, description, license, srcDir, binDir, backend,
skipDirs, skipFiles, skipExt, installDirs, installFiles, installExt, bin, foreignDeps,
requires, task, packageName
requires, requiresData, task, packageName
import strutils
import "$1"
Expand Down
17 changes: 17 additions & 0 deletions tests/issue1158/issue1158.nimble
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

# Package

version = "0.1.0"
author = "stoneface86"
description = "A new awesome nimble package"
license = "MIT"
srcDir = "src"


# Dependencies

requires "nim >= 1.6.16"

task echoRequires, "":
echo requiresData

7 changes: 7 additions & 0 deletions tests/tissues.nim
Original file line number Diff line number Diff line change
Expand Up @@ -424,3 +424,10 @@ suite "issues":

# Clean up package file
check execNimble(["refresh"]).exitCode == QuitSuccess

test "issue #1158":
cd "issue1158":
let (output, exitCode) = execNimble("--silent", "echoRequires")
check:
exitCode == QuitSuccess
output.strip() == "@[\"nim >= 1.6.16\"]"

0 comments on commit bd9651a

Please sign in to comment.