Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #1158 #1159

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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\"]"