clj-on-windows 2021-06-18

Hey, I have been trying to add ssh-agent to my project in order to work with other private repo I have on github. I tried run over power-shell ssh-start and ssh-add, and when Get-Service ssh-agent I can see that the ssh-agent is running. Any ideas how to solve this? But still I am getting Auth fail:

at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:248)                                                                                                                             at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:306)                                                                                                                            at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:200)                                                                                                                             at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:89)                                                                                                                              at clojure.tools.gitlibs.impl$call_with_auth.invokeStatic(impl.clj:51)                                                                                                                       at clojure.tools.gitlibs.impl$call_with_auth.invoke(impl.clj:43)                                                                                                                             at clojure.tools.gitlibs.impl$git_clone_bare.invokeStatic(impl.clj:73)                                                                                                                       at clojure.tools.gitlibs.impl$git_clone_bare.invoke(impl.clj:70)                                                                                                                             at clojure.tools.gitlibs.impl$ensure_git_dir.invokeStatic(impl.clj:112)                                                                                                                      at clojure.tools.gitlibs.impl$ensure_git_dir.invoke(impl.clj:102)                                                                                                                            at clojure.tools.gitlibs$resolve.invokeStatic(gitlibs.clj:33)                                                                                                                                at clojure.tools.gitlibs$resolve.invoke(gitlibs.clj:29)                                                                                                                                      at clojure.tools.gitlibs$procure.invokeStatic(gitlibs.clj:47)                                                                                                                                at clojure.tools.gitlibs$procure.invoke(gitlibs.clj:41)                                                                                                                                      at clojure.tools.deps.alpha.extensions.git$eval1316$fn__1318.invoke(git.clj:42)                                                                                                              at clojure.lang.MultiFn.invoke(MultiFn.java:239)                                                                                                                                             at clojure.tools.deps.alpha$expand_deps.invokeStatic(alpha.clj:422)                                                                                                                          at clojure.tools.deps.alpha$expand_deps.invoke(alpha.clj:390)                                                                                                                                at clojure.tools.deps.alpha$resolve_deps.invokeStatic(alpha.clj:495)                                                                                                                         at clojure.tools.deps.alpha$resolve_deps.invoke(alpha.clj:475)                                                                                                                               at clojure.tools.deps.alpha$calc_basis.invokeStatic(alpha.clj:648)                                                                                                                           at clojure.tools.deps.alpha$calc_basis.invoke(alpha.clj:622)                                                                                                                                 at clojure.tools.deps.alpha.script.make_classpath2$run_core.invokeStatic(make_classpath2.clj:91)                                                                                             at clojure.tools.deps.alpha.script.make_classpath2$run_core.invoke(make_classpath2.clj:57)                                                                                                   at clojure.tools.deps.alpha.script.make_classpath2$run.invokeStatic(make_classpath2.clj:119)                                                                                                 at clojure.tools.deps.alpha.script.make_classpath2$run.invoke(make_classpath2.clj:113)                                                                                                       at clojure.tools.deps.alpha.script.make_classpath2$_main.invokeStatic(make_classpath2.clj:169)                                                                                               at clojure.tools.deps.alpha.script.make_classpath2$_main.doInvoke(make_classpath2.clj:140)                                                                                                   at clojure.lang.RestFn.applyTo(RestFn.java:137)                                                                                                                                              at clojure.lang.Var.applyTo(Var.java:705)                                                                                                                                                    at clojure.core$apply.invokeStatic(core.clj:667)                                                                                                                                             at clojure.main$main_opt.invokeStatic(main.clj:514)                                                                                                                                          at clojure.main$main_opt.invoke(main.clj:510)                                                                                                                                                at clojure.main$main.invokeStatic(main.clj:664)                                                                                                                                              at clojure.main$main.doInvoke(main.clj:616)                                                                                                                                                  at clojure.lang.RestFn.applyTo(RestFn.java:137)                                                                                                                                              at clojure.lang.Var.applyTo(Var.java:705)                                                                                                                                                    at clojure.main.main(main.java:40)                                                                                                                                                   Caused by: org.eclipse.jgit.errors.TransportException: git@github.com:GaiwanTeam/data-tools: Auth fail                                                                                               at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:172)                                                                                         at clojure.tools.gitlibs.impl.proxy$org.eclipse.jgit.transport.JschConfigSessionFactory$ff19274a.getSession(Unknown Source)                                                                  at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:140)                                                                                                                 at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:280)                                                                                            at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:170)                                                                                                            at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:137)                                                                                                                 at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:123)                                                                                                                    at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1269)                                                                                                                           at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:237)                                                                                                                             ... 37 more                                                                                                                                                                          Caused by: com.jcraft.jsch.JSchException: Auth fail                                                                                                                                                  at com.jcraft.jsch.Session.connect(Session.java:519)                                                                                                                                         at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:126)                                                                                         ... 45 more 

Alex Miller (Clojure team) 2021-06-18T16:56:45.049300Z

The recent versions of clj don’t use jsch or jgit and instead just shell out to git

Alex Miller (Clojure team) 2021-06-18T16:57:19.050100Z

So upgrading may be the best thing to do

I've been helping Ariel with this. The wiki suggests downloading 1.10.3.855.ps1 , but the CHANGELOG says that 0.10.889 is the version that changed it to shell out to git. Does 1.10.3.855 include these changes?

Alex Miller (Clojure team) 2021-06-18T18:07:25.052600Z

yes

855 was published twenty something days ago, so that should be there for a while already

@actuallyalys_slack A much easier way to install Clojure tools on Windows is via scoop-clojure. Lots of other tools in there as well: https://github.com/littleli/scoop-clojure

(Another easier way is to manage all the git stuff via WSL2 probably, but that's another story.)

Thanks! @alexmiller @borkdude I think I was confused by the similarities in version numbers (they both have a minor version of 10 and a final number in the 800s) but it looks like these are completely separate schemes.

@actuallyalys_slack This might be tools.deps.alpha version vs the command line version

To explain this more, the command line always uses a tools.jar, which contains a specific version of tools.deps.alpha, which is the Clojure JVM library doing all the dependency work

The page Alex linked to above ties them together in each release, showing the CLI version and the underlying tools.deps.alpha version, which can be really helpful.

πŸ‘ 1
Alex Miller (Clojure team) 2021-06-18T18:28:23.059300Z

it also only contains stable release versions

πŸ‘πŸ» 1