juxt

2018-05-01T14:57:12.000727Z

hello all

2018-05-01T14:57:21.000383Z

having some issues creating an uberjar

2018-05-01T14:58:13.000566Z

getting these exceptions (I've provided the classpath tree with clj -Stree)

dominicm 2018-05-01T15:08:37.000365Z

@dimovich have you run clj once without pack?

2018-05-01T15:09:59.000465Z

yeah, I can start my project with clj -m project.core

2018-05-01T15:11:33.000371Z

are there any other ways of investigating the classpath issues?

dominicm 2018-05-01T15:12:29.000406Z

I think this is to do with unreproducible deps.edn files, in some way. A quick solution is to add:

:mvn/repos {
              "central" {:url "<https://repo1.maven.org/maven2/>"}
              "clojars" {:url "<https://repo.clojars.org/>"}}
to your deps.edn

dominicm 2018-05-01T15:13:23.000350Z

pack doesn't look at the "global" or "user" deps.edn files, which automatically provide maven central. I really want to never consider the user one, but do want to consider the global one. Unfortunately clj doesn't really give me a good way to distinguish via the API.

2018-05-01T15:18:33.000583Z

@dominicm whew! that fixes the issue. thanks!

2018-05-01T15:19:25.000354Z

strange that everything was working fine a week ago... I guess a new library had an unresolvable dependency

dominicm 2018-05-01T15:20:48.000485Z

I'm have some suspicions about what happened there. I'm guessing a transitive dependency of something of something in ~/.clojure/deps.edn makes it end up as a different version.

dominicm 2018-05-01T15:20:55.000040Z

I guess clj -Srepro would have fixed it.

dominicm 2018-05-01T15:21:13.000591Z

@dimovich If you remove the :mvn/repos, I bet it will continue to work.

2018-05-01T15:46:09.000140Z

trying now

2018-05-01T15:50:21.000202Z

clj -Srepro -A:uberjar still gives me those errors

2018-05-01T15:51:02.000373Z

seems I have to keep the :mvn/repos

dominicm 2018-05-01T15:51:47.000705Z

Interesting, I am surprised and confused by this

2018-05-01T15:53:26.000257Z

will remove stuff from .clojure/deps.edn and retry

2018-05-01T16:14:46.000546Z

well, even if I delete all stuff from ~/.clojure/deps.edn I still get the exception

2018-05-01T16:15:03.000165Z

the only way to make it uberjar, is to add the :mvn/repos

2018-05-01T16:23:06.000416Z

I'm not using the latest version of pack.alpha

2018-05-01T16:23:19.000326Z

will experiment with it...

2018-05-01T16:29:31.000165Z

@dominicm thanks again for helping!

dominicm 2018-05-01T16:30:04.000102Z

Interesting, I'm not quite sure what this is.