Wrong checksums on several (transitive) dependencies - what's the best way to resolve it?

183 views
Skip to first unread message

hai...@grakn.ai

unread,
Sep 10, 2018, 12:21:36 PM9/10/18
to bazel-discuss
Hi everyone,

I'm trying out to migrate our relatively large pom.xml at the moment, using [bazel-deps]() and I'm getting several checksum errors such as:
```
java.lang.RuntimeException: we could not download the artifact commons-httpclient:commons-httpclient:3.1 to compute the hash for digest type Sha1 with error com.github.johnynek.bazel_deps.CoursierResolver$FileErrorException: wrong checksum: /Users/haikalpribadi/Library/Caches/Coursier/v1/https/jcenter.bintray.com/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar
at com.github.johnynek.bazel_deps.CoursierResolver$$anonfun$2.apply(CoursierResolver.scala:98)
        ...
```

I tried explicitly declaring commons-httpclient:commons-http-client:3.1 in input yaml file, and the error went away.


However, I keep on getting more of these errors. Do we know what the real cause is, and what is the best way to resolve these checksum errors?

This is the configuration of my dependency list (yaml input) file to `bazel-deps`:
```
options:
  languages: ["java"]
  resolverType: coursier
  resolvers:
  - id: mavencentral
    type: default
  strictVisibility: true
  transitivity: runtime_deps
  versionConflictPolicy: highest
  thirdPartyDirectory: "dependencies/maven/"
```

László Csomor

unread,
Oct 17, 2018, 3:33:53 AM10/17/18
to hai...@grakn.ai, bazel-...@googlegroups.com
Hi,

Has this issue been resolved?


--
László Csomor | Software Engineer | laszlo...@google.com

Google Germany GmbH | Erika-Mann-Str. 33 | 80636 München | Germany
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado


--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/d066c4a9-ed86-4337-8fc1-a640c14de657%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages