Commit Graph

72 Commits

Author SHA1 Message Date
Alexandre Archambault 6aebdac008 Ignore UTF-8 BOM in metadata files
Fixes https://github.com/alexarchambault/coursier/issues/316
2016-08-11 16:23:49 -04:00
Alexandre Archambault f46581288f
Enable TTL for changing artifacts by default 2016-07-25 00:19:03 +02:00
Alexandre Archambault c41dabdef9
Fix default cache TTL 2016-07-25 00:19:01 +02:00
Rodrigo Fernandes 88cd8909a3
Catch exception when reading file 2016-07-24 13:56:45 +01:00
Alexandre Archambault 1c34362b6f
Better handling of Ivy patterns 2016-07-23 13:56:28 +02:00
Alexandre Archambault 387d88d717
Accept non-finite durations as TTL 2016-05-31 15:18:33 +02:00
Alexandre Archambault b76fbf363a
Add support for TTL 2016-05-31 15:18:29 +02:00
Alexandre Archambault 6aad1c6310
Add scaladoc 2016-05-31 13:41:56 +02:00
Alexandre Archambault 1553d0b9d9
Add support for Ivy version ranges 2016-05-30 00:40:41 +02:00
Alexandre Archambault 527b1eca96
Disable progress bar by default if CI or Emacs detected 2016-05-22 21:59:05 +02:00
Alexandre Archambault 0f914cf781
Small fix in error messages 2016-05-09 19:25:21 +02:00
Alexandre Archambault f68ed5d42b
Add support for HTTP authentication 2016-05-09 19:25:15 +02:00
Alexandre Archambault 00484df435
Exception.getMessage can be null 2016-05-06 13:53:53 +02:00
Alexandre Archambault 00aaf8e1ac
Factor default Ivy pattern 2016-04-17 22:24:26 +02:00
Alexandre Archambault 96275df945 Small refactoring 2016-04-05 17:03:11 +02:00
Alexandre Archambault f73dac68fd Try not flooding the terminal with ignored errors...
...in updateClassifiers.

Also fail if an artifact cannot be fetched in update. A bit risky - might unveil locked errors, that ought to be circumvented.
2016-04-05 17:03:03 +02:00
Alexandre Archambault 4e74fe360f Add missing \n 2016-04-05 16:24:38 +02:00
Alexandre Archambault 62720f94e0 Add update-local and update-local-changing modes 2016-04-05 16:24:37 +02:00
Alexandre Archambault 05d8224c49 Add -P option to force display of progress bars...
...else also look at the COURSIER_PROGRESS env var to force enabling or disabling them.

This deprecates the COURSIER_NO_TERM env var.
2016-04-05 16:24:37 +02:00
Alexandre Archambault f19f9c9a69 Really suppress "/dev/tty not configured" message 2016-03-16 00:00:33 +01:00
Alexandre Archambault 83a08d172c Add per-cache file structure lock
To be acquired when creating directories or locks in particular, so that these don't hinder each other.
2016-03-14 16:20:22 +01:00
Alexandre Archambault dfc11151b1 Move FileError to a separate file 2016-03-14 16:20:22 +01:00
Alexandre Archambault 074e806c3b Keep moving things around in TermDisplay 2016-03-14 16:20:21 +01:00
Alexandre Archambault 3ff533a02b Move things around in TermDisplay 2016-03-14 16:20:21 +01:00
Alexandre Archambault 80f94a360b Disable progress bars by default in non-interactive mode 2016-03-14 16:20:21 +01:00
Alexandre Archambault 5bd4184ac9 Replace Either[Unit, Unit] by a more explicit custom ADT 2016-03-14 16:20:21 +01:00
Alexandre Archambault 32a4ccc072 Cleaning 2016-03-14 13:36:51 +01:00
Alexandre Archambault a6c488812c Add back support for partial downloads
Broken when adding support for not-found caching
2016-03-07 01:48:23 +01:00
Alexandre Archambault aa836864a3 Don't wrongly take into account previously downloaded chunks in bitrate calculations 2016-03-07 01:48:23 +01:00
Alexandre Archambault d3247d60fd Merge pull request #190 from alexarchambault/topic/fix-update-changing
Fix update-changing mode, report update checks
2016-03-07 01:43:22 +01:00
Alexandre Archambault b3eca058e4 Merge pull request #191 from alexarchambault/topic/checksum-format
Add back support for some checksum format
2016-03-06 19:27:39 +01:00
Alexandre Archambault 90ccdb46fc Fix update-changing mode, report update checks 2016-03-06 19:27:06 +01:00
Alexandre Archambault dee115c1b6 Add back support for some checksum format 2016-03-06 14:56:12 +01:00
Alexandre Archambault a2364ca0c5 Add support for custom URL protocols 2016-03-06 14:45:58 +01:00
Alexandre Archambault a7a34320df Cache now only designated by a simple directory 2016-03-06 14:45:57 +01:00
Alexandre Archambault 2ac4e83391 Remove unnecessary read-lock
The corresponding files are atomically moved at their places once fully downloaded, no need for locks here.
2016-03-04 00:54:01 +01:00
Alexandre Archambault ff20ab3623 Rework checksum calculation a bit
To handle those starting with zeros in particular
2016-03-04 00:51:28 +01:00
Alexandre Archambault 7cb3a6ac32 Merge pull request #171 from darkjh/bugfix/#131_junk_sha1
Bugfix/#131 junk sha1
2016-03-03 00:12:06 +01:00
Han JU dab0c94622 More intelligent checksum parsing and unit tests 2016-03-02 15:03:05 +01:00
Alexandre Archambault 82e64fe7a8 Remove ammonite-terminal dependency 2016-02-28 19:35:50 +01:00
Alexandre Archambault 1731fca26c Have the cache keep track of missing files 2016-02-24 23:50:04 +01:00
Alexandre Archambault 79b4be89bc Escape characters in cache path
Fixes https://github.com/alexarchambault/coursier/issues/133
2016-02-23 20:19:18 +01:00
Alexandre Archambault 117e469ed9 Allow to disable progress bar display with the COURSIER_NO_TERM
environment variable by default

COURSIER_NO_TERM just has to be non-empty.
2016-02-22 23:01:22 +01:00
Alexandre Archambault 88708732f9 Minor fix 2016-02-16 00:46:14 +01:00
Alexandre Archambault 2637366229 Small fix in new progress terminal display
Don't keep 0% lines on failed downloads
2016-02-16 00:46:13 +01:00
Alexandre Archambault ae99c1d692 Nicer progress reporting 2016-02-12 18:13:36 +01:00
Alexandre Archambault 56192a2cca Replace sealed traits by abstract classes in order to generate less byte code 2016-02-07 14:14:01 +01:00
Alexandre Archambault 5f9f854562 Replace usages of scala.io.Source with NIO 2016-02-07 13:29:39 +01:00
Alexandre Archambault 796a428ca6 Better handling of info attributes
- Drop them from dependencies originating from Ivy metadata if asked to do so (dropInfoAttributes field of IvyRepository)
- Enable dropping them by default on ~/.ivy2/{cache,local}, and Ivy repositories in SBT plugin
- Add --drop-info-attr CLI option to enable dropping them from the command-line tools
- Test these with org.scala-js:sbt-scalajs;sbtVersion=0.13;scalaVersion=2.10:0.6.6
2016-02-04 15:03:42 +01:00
Alexandre Archambault 3d1beadea9 Slightly better error printing 2016-01-26 18:14:21 +01:00