-
Notifications
You must be signed in to change notification settings - Fork 14
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
Custom extractors #3
Comments
One piece I'm not sure about is where non-Nim dependencies should be added/defined. Would it just be overloading the |
You would setup an extractor as a plugin and its tied to a filename. For example "requirements.txt" -> Pip compatible parser etc. |
Ok that makes sense for running the extractors. Would the extractors also be responsible for outputting a list of dependencies/repos then from a Nim project? Alternatively would non-Nim projects be just another As an example let's say that you have a |
Neither. You specify in the .nimble file the URL of the dependency and its version. In the dependency there is already the |
And now I repeated the same mistake again. Talking about custom builders when the topic is custom extractors... |
No worries on my end, it's a bit overloaded and I'm unsure if it's more of a builders or extractors issue. It's really neither?
Ah so in the Nimble file, but some other DSL construct like |
The parser that process
project.nimble
is what I call anextractor
. Custom extractors allow to extend this mechanism to cover other package managers, including ones for different programming languages. An extractor can be written in any programming language you like.The entry in the configuration would look somewhat like:
The text was updated successfully, but these errors were encountered: