Commit graph

1035 commits

Author SHA1 Message Date
Phil Hagelberg
b06e85ba5e Bump dynapath dependency.
Fixes #2331.
2017-10-27 12:08:45 -07:00
Florian Anderiasch
933f668cd0 Get rid of cgroups special handling in core 2017-10-26 11:26:20 +02:00
Phil Hagelberg
cb8abd7e3c Merge pull request #2337 from tsachev/master
Upgrade to pomegranate 0.4.0
2017-10-25 11:19:06 -07:00
Phil Hagelberg
d031120a6b Ensure dynamic classloader even when no plugins are specified.
Fixes #2340.
2017-10-25 10:30:22 -07:00
Vladimir Tsanev
ea6288d3a2 Upgrade to pomegranate 0.4.0 2017-10-25 17:38:08 +03:00
Phil Hagelberg
b0c4d09cf2 Consistently wrap a DynamicClassLoader even when not in 1.9+ 2017-10-24 11:09:04 -07:00
Phil Hagelberg
a0beae8d8a Don't trust modifiable-classloader? on Java 1.9+.
Might fix #2331?
2017-10-24 10:49:43 -07:00
Florian Anderiasch
6e84fd270b Fix #2336 - cgroups detection, again 2017-10-24 00:47:01 +02:00
Phil Hagelberg
2e78e82bc2 Revert "Type-hint and print metadata of form used by run task"
This reverts commit 28ef899fb1.

This fixes #2328.
2017-10-21 15:15:06 -07:00
Florian Anderiasch
a425277291 Make UseCGroupMemoryLimitForHeap apply only on Linux 2017-10-21 13:41:03 +02:00
Phil Hagelberg
3af03daec2 Merge pull request #2324 from acron0/fix/cgroups-jvm-opts-boolean-logic-2
Fix boolean logic in Java version check for cgroups memory limit JVM option
2017-10-19 07:59:59 -07:00
Antony Woods
c447b43cd4 Adjustments per comments from @technomancy
Changed version check to string comparison
2017-10-18 19:40:40 +01:00
Phil Hagelberg
3630e83d0f We shouldn't recommend use of outdated JDKs.
[skip ci]
2017-10-18 10:19:57 -07:00
Antony Woods
393205ea83 Fix test for Java > 1.8.0 2017-10-18 16:46:03 +01:00
Antony Woods
06b26bf1d9 Fix boolean logic in Java version check for cgroups memory limit JVM option 2017-10-18 16:28:44 +01:00
Phil Hagelberg
d42f947f09 Bump up to the next snapshot.
[skip ci]
2017-10-17 17:41:41 -07:00
Phil Hagelberg
04b88e57c4 Release 2.8.0 2017-10-17 17:33:25 -07:00
Phil Hagelberg
48f0b89e41 Only warn for plugin conflicts when :pedantic? is :warn or :abort. 2017-10-13 16:59:22 -07:00
Phil Hagelberg
d5bf55df1c Go back to version 2.8.0-SNAPSHOT.
[skip ci]
2017-09-19 15:33:40 -07:00
Phil Hagelberg
b2c4c5a782 Release 2.8.0-RC1 2017-09-18 15:45:42 -07:00
Phil Hagelberg
267e16ab1f Prepare for 2.8.0-RC1. 2017-09-18 15:43:27 -07:00
Phil Hagelberg
ab51aaad88 Merge pull request #2306 from glts/typehint-run-form
Type-hint leiningen.run/run-form and print metadata in eval file
2017-09-11 13:57:15 -07:00
David Bürgin
28ef899fb1 Type-hint and print metadata of form used by run task 2017-09-01 19:03:58 +02:00
Phil Hagelberg
ce971e504a Oops; into does not take varargs. 2017-08-28 12:02:33 -07:00
Phil Hagelberg
9c34b6c3b5 Don't enable cgroups memory flags on older JVMs. 2017-08-25 16:40:59 -07:00
Phil Hagelberg
933015ee08 Default to getting JVM memory limit from cgroups.
Fixes #2304.
2017-08-25 14:47:08 -07:00
Phil Hagelberg
97dceab628 Work around bug in aether/s3-wagon-private which hides :passphrase.
Fixes #2278.
2017-08-16 16:17:59 -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
David Bürgin
7bd3d1b194 Trim whitespace in Git HEAD commit hash 2017-07-13 23:21:13 +02: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
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
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
3385971e65 Add tests from pedantic lib as well.
Fix HTTP-using jar test.
2017-05-26 11:32:59 -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
1a502050c7 Move plugin conflict warnings to only activate when :pedantic? is set. 2017-05-23 10:09:53 -07: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
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
9b2792d249 Remove pedantic version warnings in leiningen-core.
[skip ci]
2017-05-05 15:47:45 -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
aaa3ef161b Warn when trying to load plugins that can't be used.
This addresses the problems seen in #1900 and #1901. It doesn't fix
them because they can't be fixed without breaking other things,
(https://github.com/technomancy/grenchman/issues/34) but at least it
lets people know what is going on and suggests a workaround.
2017-03-28 12:11:49 -07:00
Phil Hagelberg
c1aea4d256 Merge pull request #2258 from firesofmay/catch-no-route-exception
Catch NoRouteToHostException exception
2017-03-23 14:46:32 -07:00
Phil Hagelberg
627d4448d4 Merge remote-tracking branch 'weavejester/smarter-target-profiles'
Conflicts:
	leiningen-core/src/leiningen/core/project.clj
2017-03-23 14:35:02 -07:00
James Reeves
1fe6dce707 Change profiles string to recursively normalize
Composite profiles that are made of other composite profiles should be
recursively normalized when creating the target path string.
2017-03-13 22:31:06 +00:00
Mayank Jain
1d996b378f Catch NoRouteToHostException exception
In case network is down while fetching dependencies and we get
NoRouteToHostException exception, fallback to `:offline? true`
behaviour.

Fixes #2054 issue.
2017-03-13 10:54:19 +05:30