Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #786 from technomancy/global-offline-flag

If LEIN_OFFLINE env var is set, assume offline mode by default
  • Loading branch information...
commit 2c2f13283bb352ba7d759d10cd053092d15d9ca9 2 parents 51b4bad + dc9fd48
@technomancy authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  leiningen-core/src/leiningen/core/project.clj
View
3  leiningen-core/src/leiningen/core/project.clj
@@ -64,7 +64,8 @@
:eval-in (or (:eval-in args#)
(if (:eval-in-leiningen args#)
:leiningen
- :subprocess))}))))
+ :subprocess))
+ :offline? ~(not (nil? (System/getenv "LEIN_OFFLINE")))}))))
(defn- de-dupe-repo [[repositories seen?] [id settings]]
;; repositories from user profiles can be just credentials, so check :url
Please sign in to comment.
Something went wrong with that request. Please try again.