Because on Cygwin JAVA_CMD will be set to an UNIX path. This will result
in a "File not found" exception when the native Leiningen JAVA process
will execute JAVA_CMD.
Checked upgrade command. Condition was wrong and self-modifying batch code
is just ugly.
Testing:
- Remove 2.5.3 JAR file. This will be re-loaded by calling self-install
on the loaded batch file.
- Execute "bin\lein.bat upgrade 2.5.3".
- The batch file will be reverted to the 2.5.3 state and JAR file loaded.
Checked on Windows 7 and Windows 8, with Java Oracle 1.8.0_65.
Improved error detection, especially for downloads. Script
returns non-zero exit code on problems now.
Updated wget link. The original URL does not work any longer.
Supplied a known clean download location, including VirusTotal link.
The slightly re-written structure makes this code work with TCC, too,
so this commit should solve #2019, too.
Quoting has been amended so the code works on Leiningen folders that
contain space characters.
nREPL 0.2.11 added an extremely important source-tracking feature, which is leveraged by CIDER (and probably some other tools). 0.2.12 fixed a critical bug introduced in 0.2.11.
return nil instead of the empty list from parse-github-url. Otherwise
we end up with broken connection and developerConnection params in pom
files when not using github, like in:
<scm>
<connection>scmgit://github.com//.git</connection>
<developerConnection>scmssh://git@github.com//.git</developerConnection>
<tag>03299434f4af53bde0fd4f4000174ae7a7ee0818
</tag>
<url>https://github.com//</url>
</scm>
With this change, the scm section for non-github URLs looks like:
<scm>
<tag>03299434f4af53bde0fd4f4000174ae7a7ee0818
</tag>
<url/>
</scm>
Some wagons can find their own authentication. For example, the S3 wagon can
use IAM roles if it's running on an EC2 instance. For these wagons, all we need
to do is get out of the way.
It seems like potemkin is kept at 0.3.x, but some libraries seem to
depend on its transitive dependency, clj-tuple. In particular, some
dependency wants to use `clojure.lang.PersistentUnrolledVector`, which it
cannot find.
Pinning it to the latest version seems to cause issues like #1693 go
away.