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

Figure out how to add deps from within a script #125

Open
dundalek opened this issue Apr 9, 2019 · 5 comments
Open

Figure out how to add deps from within a script #125

dundalek opened this issue Apr 9, 2019 · 5 comments
Labels

Comments

@dundalek
Copy link
Owner

dundalek commented Apr 9, 2019

To support git deps. I think it might be possible to call resolve-deps and make-classpatch from tools.deps programatically. Then add the result to classpath with pomegranate's add-classpath.

https://clojure.org/reference/deps_and_cli#_resolve_deps
https://clojure.org/reference/deps_and_cli#_make_classpath

https://github.com/lambdaisland/kaocha/blob/master/src/kaocha/classpath.clj

@dundalek dundalek added the jvm label Apr 9, 2019
@jeroenvandijk
Copy link
Contributor

Some previous work/thought: clj-commons/pomegranate#106

@jeroenvandijk
Copy link
Contributor

A collegeau pointed me to a similar thing with tools.deps in IClojure (Clojure in Jupyter) https://github.com/HCADatalab/IClojure/blob/62cda58dee9c57d7d5e120df618e9ffbcd6181d9/src/iclj/core.clj#L368

@dundalek
Copy link
Owner Author

dundalek commented Oct 8, 2019

It seems like add-lib function that would handle this is on the roadmap for Clojure 1.11. I think I will wait for that instead of trying to create some custom solution.

@jeroenvandijk
Copy link
Contributor

With Sci and GraalVM things have becomes slightly more difficult. However, there is this idea from @borkdude to explore the library feature of GraalVM to host native extensions on Clojars :)

See clj-easy/graal-docs#15

@dundalek
Copy link
Owner Author

@jeroenvandijk That would be cool, I am definitely interested how the exploration will turn out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants