-
Notifications
You must be signed in to change notification settings - Fork 190
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
Feature: Task-level dependencies #482
Comments
Another use case: comparing against reference implementations/libraries. In my case a C++ wrapper that I rewrote in pure Nim. |
Perhaps you could run |
I just tried, that unfortunately didn't work :/
|
After discussion on IRC I am tempted to implement this instead of #464. https://irclogs.nim-lang.org/20-08-2018.html#16:05:30 For the Nimgen use case: before install:
requires "nimgen"
exec "nimgen ngen.cfg" For the task test:
requires "quickcheck"
exec "nim c -r tests/tester" Unlike the global Note: If |
Okay, so I need to be able to override the NimScript |
Looking at @dom96 earlier comment, specifying a required package for a custom task can only install the package if it isn't already present. It doesn't actually make it seamless to use the package. User has to resort to exec calls to nim or nimble. Nim might even work if the dep is installed globally but nimble won't as seen above. Fixing that is not trivial given the new architecture where nimble spawns How about a |
So another failure and lost time that could be avoided with task level dependencies so that test packages don't pollute everything: nim-json-serialization is bringing Chronos because it needs to test and work with it, and then it turns Chronos is bringing BearSSL and a testutils a fuzzing framework. All those things pollute builds and could be avoided if task-level dependencies were supported. |
I've create a nimble fork for temporary solution , https://github.com/bung87/slim |
Implemented in #1035 |
I'd like to use Quickcheck for testing but it seems like currently either it's listed as a full dependency and get pulled on user machine, or it's not listed and it cannot be run as a nimble task.
Can we also allow
requires
at the task level.The text was updated successfully, but these errors were encountered: