Fork me on GitHub
#juxt
<
2018-05-01
>
dimovich14:05:21

having some issues creating an uberjar

dimovich14:05:13

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

dominicm15:05:37

@dimovich have you run clj once without pack?

dimovich15:05:59

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

dimovich15:05:33

are there any other ways of investigating the classpath issues?

dominicm15:05:29

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

:mvn/repos {
              "central" {:url ""}
              "clojars" {:url ""}}
to your deps.edn

dominicm15:05:23

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.

dimovich15:05:33

@dominicm whew! that fixes the issue. thanks!

dimovich15:05:25

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

dominicm15:05:48

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.

dominicm15:05:55

I guess clj -Srepro would have fixed it.

dominicm15:05:13

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

dimovich15:05:21

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

dimovich15:05:02

seems I have to keep the :mvn/repos

dominicm15:05:47

Interesting, I am surprised and confused by this

dimovich15:05:26

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

dimovich16:05:46

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

dimovich16:05:03

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

dimovich16:05:06

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

dimovich16:05:19

will experiment with it...

dimovich16:05:31

@dominicm thanks again for helping!

dominicm16:05:04

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