Commit graph

4367 commits

Author SHA1 Message Date
Jean Niklas L'orange
aa8f0e6ee7 Merge pull request #2295 from kingpong/suppress-boxed-math-warning
Prevent boxed math warnings in `lein test`
2017-08-05 16:20:26 +02:00
Philip Garrett
2aee571127 Prevent boxed math warnings in lein test
This change prevents `lein test` from generating mysterious boxed math
warnings like the following when *unchecked-math* is :warn-on-boxed in
the :test profile:

    % lein test
    Boxed math warning, /private/var/folders/g8/bx1hjysj0zz4zr8ljghr4b0m0000gn/T/form-init2325898126244193444.clj:1:11129 - call: public static java.lang.Number clojure.lang.Numbers.unchecked_add(java.lang.Object,java.lang.Object).
    Boxed math warning, /private/var/folders/g8/bx1hjysj0zz4zr8ljghr4b0m0000gn/T/form-init2325898126244193444.clj:1:11208 - call: public static java.lang.Number clojure.lang.Numbers.unchecked_add(java.lang.Object,java.lang.Object).

    lein test myapp.core

    Ran 12 tests containing 49 assertions.
    0 failures, 0 errors.
2017-08-04 14:36:24 -04:00
Phil Hagelberg
4676ed82d1 Merge pull request #2293 from glts/gpg-return-out-and-err
Return consistent result from leiningen.core.user/gpg
2017-07-30 15:14:10 -07:00
David Bürgin
6dc5fb48d0 Return consistent result from leiningen.core.user/gpg
Fix #2236: leiningen.core.user/gpg map returned is inconsistent
2017-07-29 20:07:27 +02:00
Jean Niklas L'orange
0edda36f63 Merge branch 'pr/2291' 2017-07-29 13:15:14 +02:00
Jean Niklas L'orange
b0eeff40fb Document how to read project.clj at runtime 2017-07-29 13:15:05 +02:00
Jean Niklas L'orange
aa202c6fc9 Merge pull request #2289 from glts/trim-git-head
Trim whitespace in Git HEAD commit hash
2017-07-21 17:48:33 +02:00
David Bürgin
3679ba2649 Do not include project.clj in JAR root
Reverts commit 0412001cef.
2017-07-21 13:54:01 +02:00
Jean Niklas L'orange
3d87692d24 Merge pull request #2290 from daveliepmann/patch-1
Add base profile note to lein checkouts
2017-07-19 13:18:43 +02:00
Dave Liepmann
0ebf7baabf Fix missing word in example
Fix typo (omitted word) per https://github.com/technomancy/leiningen/pull/2290#discussion_r128134589
2017-07-19 10:46:18 +02:00
Dave Liepmann
65e76ed270 Add base profile note to lein checkouts
Added a note to the **Checkout Dependencies** section reminding users not to override the `base` profile while using checkouts.
2017-07-18 19:04:18 +02:00
David Bürgin
7bd3d1b194 Trim whitespace in Git HEAD commit hash 2017-07-13 23:21:13 +02:00
Phil Hagelberg
afd3dee22a Merge pull request #2285 from montoux/fix-2284-checkouts-recursion
Fix #2284: avoid visiting checkouts we've already seen
2017-06-15 08:23:02 -07:00
Stephen Nelson
6dedc14707 Fix #2284: avoid visiting checkouts we've already seen
Checkouts are recursive by default and the same checkout project may be
reachable via several paths when symlinks are used. Avoid visiting projects
multiple times by keeping track of seen projects while accumulating
checkouts classpath entries.
2017-06-15 15:37:22 +12:00
Phil Hagelberg
52980074e8 Fix loading of reply to handle repo auth correctly. 2017-06-14 14:27:56 -07:00
Phil Hagelberg
ed22c49489 Fix a bug in deps :why.
No need to use walk-deps; in fact that just makes it more confusing.
2017-06-06 12:10:25 -07:00
Phil Hagelberg
e1d27074e5 Remove Travis config as it has been extremely unreliable. 2017-06-04 17:24:48 -07:00
Phil Hagelberg
63305fcccd Unmemoize in order to fix tests. 2017-06-04 09:38:00 -07:00
Phil Hagelberg
ad6c4bd290 Fix memoization for get-dependencies. Fixes #1781.
This should speed things up a lot!
2017-05-30 11:40:05 -07:00
Phil Hagelberg
5f0b0a1831 Fix offline fallback in get-dependencies-memoized. 2017-05-30 11:20:24 -07:00
Phil Hagelberg
21df60d8fa Warn when $CLASSPATH is set.
Fixes #1883.
2017-05-30 11:13:26 -07:00
Phil Hagelberg
d4bfdf47a9 Remove LEIN_ROOT check.
It seems like it's much less likely for this to happen unintentionally
these days compared to when it was added.
2017-05-29 15:56:24 -07:00
Phil Hagelberg
141da75b31 Bump copyright years. 2017-05-29 15:56:01 -07:00
Phil Hagelberg
809c7d33ea Document what causes insecure HTTP repository errors.
Fixes #2277.
2017-05-29 15:55:49 -07:00
Phil Hagelberg
463b6dc9b9 Don't notify Travis on IRC any more.
Getting too many spurious failures from inexplicable TLS problems.

[skip ci]
2017-05-26 11:43:43 -07:00
Phil Hagelberg
3385971e65 Add tests from pedantic lib as well.
Fix HTTP-using jar test.
2017-05-26 11:32:59 -07:00
Phil Hagelberg
bcfeee569d Merge branch 'circle'
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2017-05-26 11:12:31 -07:00
Phil Hagelberg
c968fa5068 Upgrade Aether via new pomegranate; merge pedantic into leiningen-core. 2017-05-26 11:04:41 -07:00
Phil Hagelberg
781195f093 Add docstring for :why subcommand of deps. 2017-05-23 22:13:10 -07:00
Phil Hagelberg
7fc6c5bdfb Add lein deps :why com.google.guava/guava command. 2017-05-23 17:51:01 -07:00
Phil Hagelberg
1a502050c7 Move plugin conflict warnings to only activate when :pedantic? is set. 2017-05-23 10:09:53 -07:00
Phil Hagelberg
19277f739c Document @-style connect args for repl credentials.
Fixes #1518

[skip ci]
2017-05-22 10:06:04 -07:00
Florian Anderiasch
71c1d4f828 Merge pull request #2276 from bfontaine/gpg-brew-url
GPG: Fix Homebrew’s homepage
2017-05-21 17:43:26 +02:00
Baptiste Fontaine
41db822921 GPG: Fix Homebrew’s homepage 2017-05-21 15:47:06 +02:00
Phil Hagelberg
8982e9c5dc Getting false from .mkdirs doesn't mean the directory doesn't exist.
This is such a dumb API.

Also, my key expiring doesn't need to fail the suite any more.
2017-05-18 17:08:14 -07:00
Phil Hagelberg
04d500103b Never use .mkdirs directly; it silently masks errors.
Use leiningen.core.utils/mkdirs so that problems will be found when
they happen.
2017-05-16 15:14:46 -07:00
Phil Hagelberg
163887d097 Merge pull request #2273 from iperdomo/master
[#2272] Catch exceptions on malformed profiles.clj files
2017-05-11 10:17:07 -07:00
Iván Perdomo
5e5aeebea9
[#2272] Catch read-string exceptions and print a nicer error
* This is change in behavior, we catch the clojure.core/read-string
  exception and we print it to stderr. The difference is that we
  let the process continue (e.g. `lein repl` starts) and the previous
  behavior was to die (due to the throwing the exception)
* We could mimic the previous behavior by exiting (System/exit 1) on
  this exception.
2017-05-11 08:57:53 +02:00
Iván Perdomo
ae9ae4825d
[#2272] Use clojure.edn/read-string to read profiles files
Using clojure.edn/read-string results in nil instead of an exception

    user=> (edn/read-string "")
    nil
    user=> (read-string "")
    RuntimeException EOF while reading  clojure.lang.Util.runtimeException (Util.java:221)
2017-05-09 05:58:06 +02:00
Phil Hagelberg
e829c12d51 Fix sample project.clj issues.
Fixes #2271 and #2270.
2017-05-08 11:35:32 -07:00
Phil Hagelberg
9874ce65e5 Gitorious isn't a thing any more. 2017-05-05 16:30:32 -07:00
Phil Hagelberg
0a30e374a9 Add circleci config.yml. 2017-05-05 16:03:16 -07:00
Phil Hagelberg
9b2792d249 Remove pedantic version warnings in leiningen-core.
[skip ci]
2017-05-05 15:47:45 -07:00
Phil Hagelberg
a441ba12ca Clearer chmod in readme.
[skip ci]
2017-04-26 08:08:24 -07:00
Phil Hagelberg
53fae3ab3e Update list of conflictable bootclasspath deps. 2017-04-26 07:58:22 -07:00
Phil Hagelberg
778a01e482 Merge pull request #2261 from technomancy/repl-outside-project
Make repls outside project run in Leiningen
2017-04-25 15:41:08 -07:00
Phil Hagelberg
1154059b3e Remove unnecessary workarounds.
[skip ci]
2017-04-25 14:28:58 -07:00
Phil Hagelberg
14c7f1ecc5 Add back in commons-lang dependency. 2017-04-25 13:47:04 -07:00
Phil Hagelberg
f27dff2a07 Remove Cheshire dependency; use XML for search results. 2017-04-25 13:24:20 -07:00
Phil Hagelberg
ae07acbcce Move clojure-complete out into repl-specific profile. 2017-04-25 13:23:59 -07:00