This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Commit 8c569dc
committed
fix: Cache clojure dependencies
Fixes #485.
This speeds up builds that use the [Clojure CLI][clojure-cli] by
avoiding network calls to download dependencies.
When a repo has a `deps.edn` file, we assume it is a Clojure repo. We
cache its dependencies by caching the following files:
* `.m2` As a JVM language, most Clojure dependencies are stored in the
global `.m2` directory.
* `.gitlibs` The Clojure CLI can also download dependencies directly
from git repositories rather than from a package manager. It caches
these downloads in the `.gitlibs` directory.
* `.cpcache` Clojure uses the `.cpcache` directory to avoid
unnecessarily re-calculating the JVM classpath. Caching this directory
won't prevent downloads, but does improve build time slightly.
[clojure-cli]: https://clojure.org/reference/deps_and_cli1 parent 0f09b1e commit 8c569dc
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
615 | 623 | | |
616 | 624 | | |
617 | 625 | | |
| |||
699 | 707 | | |
700 | 708 | | |
701 | 709 | | |
| 710 | + | |
702 | 711 | | |
703 | 712 | | |
704 | 713 | | |
| |||
713 | 722 | | |
714 | 723 | | |
715 | 724 | | |
| 725 | + | |
716 | 726 | | |
717 | 727 | | |
718 | 728 | | |
| |||
934 | 944 | | |
935 | 945 | | |
936 | 946 | | |
937 | | - | |
| |||
0 commit comments