Skip to content

Commit

Permalink
Fix offline fallback in get-dependencies-memoized.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed May 30, 2017
1 parent 21df60d commit 5f0b0a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leiningen-core/src/leiningen/core/classpath.clj
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@
(if (and (or (instance? java.net.UnknownHostException exception-cause)
(instance? java.net.NoRouteToHostException exception-cause))
(not offline?))
(get-dependencies-memoized dependencies-key (assoc project :offline? true))
(get-dependencies-memoized dependencies-key managed-dependencies-key
(assoc project :offline? true) args)
(throw e))))))))

(defn ^:internal get-dependencies [dependencies-key managed-dependencies-key
Expand Down

0 comments on commit 5f0b0a1

Please sign in to comment.