Commit Graph

37 Commits

Author SHA1 Message Date
Alexandre Archambault dfc11151b1 Move FileError to a separate file 2016-03-14 16:20:22 +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 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 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
Alexandre Archambault 8b2f3fcc04 Better error message on 404 Not Found
Fixes https://github.com/alexarchambault/coursier/issues/111
2016-01-26 18:14:21 +01:00
Alexandre Archambault b7a0c62c25 Merge pull request #108 from alexarchambault/topic/ivy-cache
Add support for ~/.ivy2/cache as a repository
2016-01-14 09:52:10 +01:00
Alexandre Archambault a8d5a2c4c9 Accept absent checksums by default
SHA-1 still checked first if present
2016-01-14 01:10:06 +01:00
Alexandre Archambault a9f3403520 Add support for ~/.ivy2/cache as a repository 2016-01-14 01:10:06 +01:00
Alexandre Archambault da819fc69f Fix cache getting confused if COURSIER_CACHE set to a relative path 2016-01-14 00:02:58 +01:00
Alexandre Archambault 214e0f893e Disable unnecessary assertion 2016-01-11 21:20:55 +01:00
Alexandre Archambault 222faf18dc Moar default values in cache module 2016-01-03 16:39:30 +01:00
Alexandre Archambault da843046df Unify global caches (defaults to ~/.coursier/cache/v1) 2016-01-03 16:39:30 +01:00
Alexandre Archambault cf269c6895 Make ivy2local an IvyRepository 2016-01-02 14:06:16 +01:00
Alexandre Archambault 340add13e7 Better error message 2015-12-30 01:34:32 +01:00
Alexandre Archambault 7a8a626064 Resume partial downloads 2015-12-30 01:34:32 +01:00
Alexandre Archambault a1db5f1fdc Better locks in cache 2015-12-30 01:34:32 +01:00
Alexandre Archambault bfc9a10639 Fix up... 2015-12-30 01:34:32 +01:00
Alexandre Archambault 66fff86f9b Don't try to download local files
Regression...
2015-12-30 01:34:32 +01:00
Alexandre Archambault da98fbca2b Make private methods that should be 2015-12-30 01:34:32 +01:00
Alexandre Archambault 63aab86d54 Remove dead code 2015-12-30 01:34:32 +01:00
Alexandre Archambault dd4dbb41f9 Better names / comments 2015-12-30 01:34:32 +01:00
Alexandre Archambault c48c50f959 Rename files project to cache 2015-12-30 01:34:32 +01:00