hi is there a way that I can access (read) the merged deps.edn from the code I am calling ?
:my-alias-target {:extra-deps {....}
:main-opts ["-e" "function/class call that can use deps.edn contents"]}
@eugen.stan Maybe looking at the clojure.basis
will help
(slurp (System/getProperty "clojure.basis"))
thanks @borkdude, it's exactly what I need
I am using Clojure CLI tools version 1.10.1.763, and with both that and a slightly earlier version when attempting a command with a single alias that uses a single :git/url dependency (which has its own :git/url dependencies), I get an error message "Error building classpath. No known relationship between git versions", but no other clue about which dependency is causing that message. Should it give a dependency name in that message? Or perhaps there are some extra command line options I could use to make it show more details?
Adding -Sverbose
shows me install_dir, config_paths, etc. but no more detail on the final error message, which is the same as above. -Strace
does not write any trace.edn
file.
I forget the flags, but the dependency tree printing may help
I am fairly sure I have a small enough issue I can track this down -- mainly curious whether the error message can be made more informative.
If you mean -X:deps tree
, I tried adding that at the end of my command line, and it downloads a few extra deps, but then gives the same error message with no other output.
It must be in the deps of your single git dep, or you have another version of that git dep in one of the other deps.edn files listed in config_paths
Agreed that my little problem here should be straightforward to track down, since I can count the deps on the fingers of one hand. As I said, I'm mainly asking whether this is expected output, for cases where it isn't so few deps.
I will get this fixed in this project, but in case you want to reproduce, a command line that should do it is, I believe: clj -Srepro -Sdeps '{:deps {cljol/cljol {:git/url "<https://github.com/jafingerhut/cljol>" :sha "36c45f741fc64db248020aeb155f1f0f24f95dd9"}}}'
I donât think I said that
We are going to add an api for access
The system property would then be part of impl
Ah, sorry, I misunderstood. It sounded like you wanted to get rid of the system property altogether.
I misremembered: @ghadi said "I am 90% sure the clojure.basis property is going away"
Thatâs me hedging that itâs going to be turned into an impl detail
What that error means is that the same git lib was found but there is no ancestor relationship between the two shas and thus the ânewestâ version canât be determined
Understood. Is there enough info available when that is detected to print which git lib caused the problem? Not a big deal for me on this issue, but I can imagine with larger dep trees that it would help to narrow down the source of the problem
It can be improved if you want to file a ticket