When attempting to access the requiresData var, an error occurs:
Error: Could not read package info file in /mnt/ramdisk/ws/temp/temp.nimble;
... Reading as ini file failed with:
... Invalid section: .
... Evaluating as NimScript file failed with:
... /mnt/ramdisk/ws/temp/temp.nimble(14, 1) template/generic instantiation of `task` from here
... /mnt/ramdisk/ws/temp/temp.nimble(15, 8) Error: ambiguous identifier: 'requiresData' -- use one of the following:
... system.requiresData: seq[string]
... nimscriptapi_402557162.requiresData: seq[string]
... printPkgInfo() failed.
Consider this nimble file
When attempting to access the
requiresData
var, an error occurs:Using
system.requiresData
results in an empty seq, even though it should contain the nimble file's dependencies. When specifying it from the nimscriptapi_xxxxx module it gives us what we expect. I believerequiresData
is missing from the except clause at https://github.com/nim-lang/nimble/blob/4fbb96d0dd05244f0ea2acfeb30b730f356aa38b/src/nimblepkg/nimscriptwrapper.nim#L108-L111When I manually add
requiresData
to the generated nimscript file in/tmp
it worksThis occurs with nimble versions v0.13.1 and v0.14.2 on my machine.