Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Cache Clojure git dependencies
Browse files Browse the repository at this point in the history
The [Clojure CLI tools][clojure-cli] have a mechanism of downloading
dependencies directly from git repositories rather than from a package
manager. This patch caches the directory which stores these downloads,
speeding up builds of repos that use these types of dependencies.

[clojure-cli]: https://clojure.org/guides/deps_and_cli
  • Loading branch information
mainej committed Jun 4, 2021
1 parent 4af837c commit 1740bb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ install_dependencies() {
if [ -f deps.edn ]
then
restore_home_cache ".m2" "maven dependencies"
restore_home_cache ".gitlibs" "clojure git dependencies"
restore_cwd_cache ".cpcache" "clojure classpath"
echo "Installing Clojure dependencies"
if clojure -Spath -Sforce >/dev/null
Expand Down Expand Up @@ -731,6 +732,7 @@ cache_artifacts() {
cache_home_directory ".emacs.d" "emacs cache"
cache_home_directory ".m2" "maven dependencies"
cache_home_directory ".boot" "boot dependencies"
cache_home_directory ".gitlibs" "clojure git dependencies"
cache_home_directory ".composer" "composer dependencies"
cache_home_directory ".homebrew-cache", "homebrew cache"
cache_home_directory ".rustup" "rust rustup cache"
Expand Down

0 comments on commit 1740bb6

Please sign in to comment.