Fork me on GitHub
#tools-deps
<
2020-09-15
>
Aaron Cummings17:09:14

Does there exist a tool like Mr. Anderson (dependency shading) for tools-deps?

andy.fingerhut17:09:23

I haven't actually used Mr. Anderson, but am aware of it and why someone might want to use it. Is Mr. Anderson in any way currently tied to Leiningen?

Aaron Cummings18:09:19

It is a leiningen plugin, but it looks like it could be used directly. But I'm having trouble describing what I'm trying to accomplish, which maybe means I'm reaching for the wrong thing. I'll need to think about this some more.

andy.fingerhut18:09:39

I have never done this before, but the Mr. Anderson project README has a brief note and a pointer to this repository, which seems to use Mr. Anderson in a way that doesn't require Leiningen: https://github.com/Olical/conjure-deps

sogaiu23:09:00

it does use it as a library there

Aaron Cummings00:09:55

I'll take a look at that, thanks.

rberger20:09:09

I am wondering why I’m getting

shadow-cljs - starting via "clojure"
Cloning: [email protected]:omnypay/amplitude.git
Error building classpath. [email protected]:omnypay/amplitude.git: USERAUTH fail
org.eclipse.jgit.api.errors.TransportException: [email protected]:omnypay/amplitude.git: USERAUTH fail
(Full stacktrace at https://gist.github.com/rberger/34d72e06736ed7cb449c88030c9815ba) This happens if I have the following in my .ssh/config:
Host 
  User git
  Port 22
  HostName 
  IdentityFile ~/.ssh/github.rsa
  AddKeysToAgent yes
  TCPKeepAlive yes
  IdentitiesOnly yes

Host *
  User myname
  Port 22
  IdentityFile ~/.ssh/id_rsa
  AddKeysToAgent yes
  TCPKeepAlive yes
  IdentitiesOnly yes
All my regular git activity works fine with this, and it seems I need this for macOS automatic key loading to work If I remove the Host * entry the clojure tools git loading works fine. I presume this is a jgit issue but I’m wondering if there is a way to make this work as I’m expecting or if I’m expecting wrong. The Maven issues talk about setting to useNativeGit=true but I don’t know if there is a way to do it with the clojure tools I had this problem once before and removed the offending config stuff, but I would like to figure out how to make this work with this or equivalent ssh config if possible.

seancorfield20:09:35

IdentityFile is the problem I believe, based on discussions I've seen here...

seancorfield20:09:09

But @alexmiller can give you a more authoritative answer...

Alex Miller (Clojure team)20:09:58

that's definitely where I'd start (by removing that)

Alex Miller (Clojure team)20:09:09

since it looks like you are using a different github key, I'm not sure of the right combination of things to make it work. you might need to add that key with ssh-add