This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-04
Channels
- # announcements (4)
- # asami (38)
- # babashka (20)
- # beginners (188)
- # cider (1)
- # clara (11)
- # clj-kondo (103)
- # clj-together (1)
- # cljs-dev (15)
- # clojure (138)
- # clojure-australia (5)
- # clojure-europe (33)
- # clojure-france (1)
- # clojure-losangeles (5)
- # clojure-nl (4)
- # clojure-norway (11)
- # clojure-serbia (3)
- # clojure-uk (11)
- # clojurescript (45)
- # community-development (3)
- # conjure (22)
- # core-async (18)
- # datomic (44)
- # defnpodcast (4)
- # deps-new (1)
- # depstar (49)
- # events (2)
- # fulcro (33)
- # girouette (2)
- # honeysql (37)
- # jackdaw (5)
- # jobs-discuss (16)
- # kaocha (3)
- # leiningen (4)
- # lsp (77)
- # malli (55)
- # membrane (4)
- # off-topic (61)
- # polylith (5)
- # quil (5)
- # reagent (33)
- # reitit (12)
- # remote-jobs (1)
- # reveal (4)
- # rewrite-clj (2)
- # sci (16)
- # shadow-cljs (22)
- # sql (1)
- # test-check (27)
- # tools-deps (44)
com.github.seancorfield/clj-new {:mvn/version "1.1.264"}
-- Create new applications and libraries with the Clojure CLI -- https://github.com/seancorfield/clj-new/releases/tag/v1.1.264 -- adjusts all generated projects so they follow the Clojars policy change to Verified Group Names; changes the group ID of clj-new
to a VGN (releases will be double-published to seancorfield/clj-new
for a while). Follow-up in #clj-new for the library, follow-up in #clojars for the policy
I’m seeing this
/t/deps ❯❯❯ clojure -version
Clojure CLI version 1.10.2.801
/t/deps ❯❯❯ cat deps.edn
{:deps {org.clojure/clojure {:mvn/version "1.10.2"}
org.clojure/clojurescript {:git/url "", :sha "715cdc07dbb1d595af91ea12affb6faf0b615d4b"}}}
/t/deps ❯❯❯ clojure -Stree
Error building classpath. Manifest type not detected when finding deps for org.clojure/clojurescript in coordinate {:git/url "", :sha "715cdc07dbb1d595af91ea12affb6faf0b615d4b"}
I can't reproduce that - can you try with -Sforce ?
(git urls typically end in .git btw, although github doesn't seem to require it)
@alexmiller same:
/t/deps ❯❯❯ clojure -Sforce
Error building classpath. Manifest type not detected when finding deps for org.clojure/clojurescript in coordinate {:git/url "", :sha "715cdc07dbb1d595af91ea12affb6faf0b615d4b"}
FWIW, I ran into a similar situation later today @alexmiller but I wasn't able to nail down a repro. In the end, I blew away ~/.gitlibs
and that fixed it. Here's the output from one of my attempts:
Checking out: at ee2badaaf4b26754f903ed92e77fd4e82cf2ed70
Error building classpath. Manifest type not detected when finding deps for com.github.seancorfield/depstar in coordinate {:git/url "", :sha "ee2badaaf4b26754f903ed92e77fd4e82cf2ed70"}
And that checked out folder was empty.And with a different SHA -- same result:
(! 806)-> clojure -X:jar
Checking out: at a8cf78c9e09e3504e64fc77bcb133a7ada39a68f
Error building classpath. Manifest type not detected when finding deps for com.github.seancorfield/depstar in coordinate {:git/url "", :sha "a8cf78c9e09e3504e64fc77bcb133a7ada39a68f"}
The only odd thing is that this line was missing when it failed:
Cloning:
but present when it worked.Just a follow-up note: in the main channel, you indicated that the problem might be due to prior parallel jgit downloads causing corruption but these SHAs were new since I moved to 1.10.2.801 -- are you saying that the jgit impl could have messed things up in the ~/.gitlibs
folder such that it causes problems for the new git-sh impl @alexmiller?
Yes. Or there was some logic that detected this and recloned and I removed it. Going to look at it today.
Happy to test more and do any debugging that might assist.
that... does not make any sense to me
the manifest type is pulled from the :git/url ns attribute
(I'm not saying you're not seeing it, just saying I don't understand why)
anything in your ~/.clojure/deps.edn? Can you try with -Srepro (that will omit that one)
can you attach the actual deps.edn file here
$ clojure -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.10.2"}
org.clojure/clojurescript {:git/url "", :sha "715cdc07dbb1d595af91ea12affb6faf0b615d4b"}}}'
Works for me locallyclojure -Srepro -Sdeps '{:deps {org.clojure/clojure {:mvn/version "1.10.2"}
org.clojure/clojurescript {:git/url "", :sha "715cdc07dbb1d595af91ea12affb6faf0b615d4b"}}}'
Error building classpath. Manifest type not detected when finding deps for org.clojure/clojurescript in coordinate {:git/url "", :sha "715cdc07dbb1d595af91ea12affb6faf0b615d4b"}
neither of those should be in play here
oh, I'm misreading the error message
@alexmiller I had previously our fork at http://github.com/nextjournal/clojurescript.git of ClojureScript with the same sha in the deps.edn
. Let me know if I should try to isolate the issue with ~/.gitlibs
and send you a minimal version
this is not detecting a manifest type in the git working tree
it's looking for either deps.edn or pom.xml in the dir
so curious what you see in ~/.gitlibs/libs/org.clojure/clojurescript/715cdc07dbb1d595af91ea12affb6faf0b615d4b
is that maybe an empty dir?
@alexmiller yes, it’s empty
ok, well I understand the error then :)
that (I think) is a side effect of parallel download conflicts from the prior jgit impl
I was never able to repro that so I can't say that it won't happen in the new one (but I think it won't)
right now we use the existence of the dir as a signal, but I want to look at this more
anyhow, enqueued :)
thx for trying it and reporting
@alexmiller Is there a documented, supported way to get hold of the injected basis for a t.d.a based program? The system property went away, right? I know how to calculate the project basis but that's not necessarily the same.
I guess (t/merge-edns ((juxt :root-edn :user-edn :project-edn) (t/find-edn-maps)))
is really all I need (since I'm just trying to look up available aliases, not deps at this point).