-
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
Build dependencies #444
Comments
Use a |
This is already configurable via
I don't see a reason why this should be configurable. You can always write your own |
Ah, thanks for the link! I still think being able to define a scratch directory would be useful for the test target. Using For For the And from a purist perspective, I also think mixing your source and build artifacts is a bad practice. I want to be able to tell you where to put things so I don't have to worry about anything intermingling. |
Hrm, can you elaborate, I'm not sure how build-only dependencies relate to build artefacts. I'm also curious where you would like the |
Bear with me here. I may be projecting preconceived concepts from other build systems that may or may not apply here. Let me apologize up front if that is the case. That said...
Your suggestion was to write my own To achieve this, though, I would need to declare a dependency that only gets used by the build. Any downstream projects that happen to consume my lib don't need to pull in that dependency. This is akin to dependency scope in Maven, for example.
I personally like to drop things in a
|
Ahh, that's what you mean. Indeed, that is a planned feature. I'm not sure "build dependency" is the right term for it though, when your package is used it is technically built by another package. |
This will be handled by #482. |
When I'm doing a local build, I prefer to keep my build directory free from build artifacts. It makes it easier for me to manage my git repo as I can stage my changes without having to worry about accidentally committing a build artifact. The current behavior of nimble is to create an artifact alongside the source file being compiled.
Would you be amendable to making this configurable somehow? I see a few options:
.nimble
file for a project. This would mean anyone who builds the project would inherit this configuration, but that isn't necessarily a bad thingnimble.ini
file. This would make it global, which I'm wary of.Also, should the
test
target build to a different location than thebin
target? And should they be separately configurable?Cheers
The text was updated successfully, but these errors were encountered: