coursier / coursier

Pure Scala Artifact Fetching
https://get-coursier.io
Apache License 2.0
2.04k stars 309 forks source link

Add timeout when downloading stuff #1982

Open alexarchambault opened 3 years ago

alexarchambault commented 3 years ago

Not sure why, but jitpack seems to block indefinitely sometimes:

$ cs get https://jitpack.io/com/github/plokhotnyuk/jsoniter-scala/jsoniter-scala-core_3.0.0-M3/2.6.4/jsoniter-scala-core_3.0.0-M3-2.6.4.pom
https://jitpack.io/com/github/plokhotnyuk/jsoniter-scala/jsoniter-scala-core_3.…
    NaN% [          ] 0B (0B / s)

(just stays this way indefinitely…)

DavidPerezIngeniero commented 8 months ago

I have also builds in SBT, locked for ever because waiting for a download. I have several resolvers, and due to download restrictions, it tries to download every dependency with all the available resolvers. And there are some combinations that provoke a lock for ever.

DavidPerezIngeniero commented 8 months ago

Any hint where to find the source code to patch?