bazel-deps icon indicating copy to clipboard operation
bazel-deps copied to clipboard

Maven classifier is not generated correctly in artifact URL

Open jcallin opened this issue 1 year ago • 1 comments

If I depend on io.netty.netty-transport-native-epoll, Coursier will try and resolve the artifact without an _ in the linux-aarch64 classifier. If I manually go to the URL and insert an _ between aarch and 64, the artifact can be found. We can see it exists at https://repo.maven.apache.org/maven2/io/netty/netty-transport-native-epoll/4.1.79.Final/netty-transport-native-epoll-4.1.79.Final-linux-aarch_64.jar

Here's the error I encounter

java.lang.RuntimeException: we could not download the artifact io.netty:netty-transport-native-epoll:jar:linux-aarch64:4.1.79.Final to compute the hash for digest type Sha1 with error com.github.johnynek.bazel_deps.CoursierResolver$FileErrorException: not found: https://repo.maven.apache.org/maven2/io/netty/netty-transport-native-epoll/4.1.79.Final/netty-transport-native-epoll-4.1.79.Final-linux-aarch64.jar

jcallin avatar Jul 26 '22 19:07 jcallin

Might be related to https://github.com/johnynek/bazel-deps/issues/295

jcallin avatar Jul 26 '22 19:07 jcallin