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

Feature request: pre-compilation support for deps-cache #38

Open
thenonameguy opened this issue Apr 6, 2023 · 1 comment
Open

Feature request: pre-compilation support for deps-cache #38

thenonameguy opened this issue Apr 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@thenonameguy
Copy link
Contributor

To speed up larger projects' eventual uberjar compilation, it would be great if clj-nix supplied a new lib function for compiling Clojure code for the dependencies returned by mk-deps-cache.

It should produce a derivation that can be symlinked into target/ folder, such that the development env (NREPL/socket repl) can automatically pick up the compiled versions of the libraries.

Uberjar compilation could accept a new argument that takes the pre-compiled classes, so they can be reused from CI.
This way projects would only compile their own source code, cutting down on overall execution time quite significantly.

@jlesquembre
Copy link
Owner

Thanks for the suggestion, it makes sense, and I like improvements to speed up the compilation.
But to be honest, in the projects I'm working on, compilation speed is ok, they aren't that big. I'd like to implement such improvement, but for me, it has low priority.

@jlesquembre jlesquembre added the enhancement New feature or request label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants