This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-30
Channels
- # aleph (2)
- # announcements (4)
- # babashka (3)
- # beginners (89)
- # calva (12)
- # cljdoc (7)
- # cljsrn (5)
- # clojars (1)
- # clojure (19)
- # clojure-dev (6)
- # clojure-europe (2)
- # clojurescript (12)
- # conjure (7)
- # cursive (4)
- # fulcro (28)
- # graphql (6)
- # gratitude (2)
- # introduce-yourself (2)
- # jobs (1)
- # jobs-discuss (26)
- # off-topic (2)
- # pathom (22)
- # pedestal (2)
- # podcasts (10)
- # re-frame (9)
- # reitit (8)
- # releases (2)
- # remote-jobs (1)
- # shadow-cljs (1)
- # tools-deps (27)
- # xtdb (11)
This basically just adds new conditions to the classpath caching logic, correct? This is all in the script?
It seems to also be in tools.deps since that writes the manifest file given a filename via --manifest-file
@alexmiller While porting the changes to deps.clj, I noticed that invoking -Stree
after the classpath has been cached, has no effect:
$ clojure -Stree
org.clojure/clojure 1.10.1
. org.clojure/spec.alpha 0.2.176
. org.clojure/core.specs.alpha 0.2.44
$ clojure -Stree
... nothing ...
Oh, that's bad.
I forgot that that was why the staleness check is in there!
I'll have to roll that part back
No worries. I already rolled it back in deps.clj and figured you either have to pre-cache the tree or just leave it like this: I think the latter would be fine.
Well for now, I will just roll back that part of the change
Perhaps you can cache the tree once it has already been computed in a file in .cpcache
To me personally this is not super important. The manifest checks I'm very happy to have found out about.
i.e.
project/
sub-project-A/
deps.edn
sub-project-B/
deps.edn
can I have an external project depend on sub-project-A
via git deps?you can even refer to the same git repo multiple times with different roots and shas
ah neat. so this would perhaps be the full thing:
{:deps {town.lilac/project-A {:git/url "..." :git/sha "..." :deps/root "sub-project-A"}}}
OK. in that case, I have more questions π now I want to support this in my monorepo project
for development purposes I have sub-project-A
depend on sub-project-B
via :local/root "../sub-project-B"
I'm guessing that won't work for people trying to consume it via git deps like this, right?
I'm developing project
right now locally so it'll be awhile before I worry about consumers using it via git deps. glad to hear it's likely I won't need to futz too much with the config for them π
There are limits if you get to comparing the same βlibβ from within a git dep as that local lib does not retain context with the root git dep
Clojure CLI prerelease 1.10.3.1013 is now available β’ Undo: -Stree no longer forces cache recompute (from last prerelease)