Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Inject proto-repl and tools.nrepl deps for clojure CLI based projects #299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roman01la
Copy link
Contributor

This is a follow up PR for #289. Currently a project owner has to specify manually proto-repl and tools.nrepl deps in his deps.edn in order for Proto REPL to be able to start nREPL server. This PR ads -Sdeps CLI flag which injects both dependencies that automatically merged with deps.edn contents when the REPL starts. Cider does this as well.

@seancorfield
Copy link

seancorfield commented Mar 26, 2018

I think it would be very valuable to have a way to specify additional arguments for the CLI command in the packages settings, the way you can for Boot, Leiningen, and Gradle. This would allow you to specify aliases to pull in dependencies for your preferred tooling. In many ways, I would prefer this approach over auto-injection of -Sdeps since the alias approach allows devs to control which versions of which tools get added.

I know CIDER does the auto-injection thing and I assume this is inspired by that?

@seancorfield
Copy link

Just to clarify: I'm not against this PR -- it is definitely needed for the base case, since no one is going to put proto-repl / tools.namespace in their regular deps -- they would use an alias to pull that sort of stuff in.

@seancorfield
Copy link

I see that a similar injection for Leiningen #176 has remained open since Nov 2, 2016 (the suggested change to split args differently seems like a better way to go).

@roman01la
Copy link
Contributor Author

Agreed. Separate field in plugin settings would be more flexible. Will add required changes soon.

@seancorfield
Copy link

Is this something I can help with? I'm keen to see better support for clj/deps.edn in ProtoREPL.

@DeLaGuardo
Copy link

I made a PR with adding separate field for passing throw clj arguments - #307

@eneroth
Copy link

eneroth commented Jul 25, 2018

This is great. I'm currently sending my proto-repl dependencies to Ions out of laziness.

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

Successfully merging this pull request may close these issues.

4 participants