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: a flag that does what dep search already does, but works for multiple artifacts and outputs a string suitable for -Sdeps #204

Open
p-himik opened this issue Feb 7, 2024 · 3 comments

Comments

@p-himik
Copy link

p-himik commented Feb 7, 2024

An example workflow: suppose I want to test out traversy and specter in a quick plain clj-based REPL.

What I usually do:

  1. neil dep search traversy
  2. neil dep search specter
  3. Get the right values
  4. Compose clj -Sdeps '{:deps {...}}' manually
  5. Run

What I'd like to be able to run instead, approximately:

  1. clj -Sdeps "$(neil deps-edn traversy specter)"
  2. "Failure: more than one matches for 'specter', please specify" followed by a list of matches
  3. clj -Sdeps "$(neil deps-edn traversy com.rpl/specter)"
@borkdude
Copy link
Contributor

borkdude commented Feb 8, 2024

Oh that would indeed be convenient!

@kpassapk
Copy link

I have been using deps-try for this, and I have loved it so far. This library targets the (rebl-readline) REPL and AFAIK doesn't provide a way to write out a deps.edn file. This would achieve a similar result but allow users to continue adding more dependencies. Seems like a plus.

@p-himik
Copy link
Author

p-himik commented Feb 15, 2024

Ah, neat, didn't know about deps-try. But there are a couple of things that get in the way of using it:

  • Doesn't show which version of a dependency has been used
  • Doesn't attempt to guess that e.g. specter is actually com.rpl/specter - just fails with an opaque error

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

No branches or pull requests

3 participants