bazeltools / bazel-deps

Generate bazel dependencies for maven artifacts
MIT License
249 stars 121 forks source link

Way to pass down os.name and os.arch #295

Open christian-lefty opened 3 years ago

christian-lefty commented 3 years ago

Hello,

Given the following dependency:

org.nd4j: nd4j-native-platform: version: "1.0.0-beta7" lang: java

It fails with error:

java.lang.RuntimeException: we could not download the artifact org.bytedeco:javacpp:jar:${os.name}-${os.arch}:1.5.3 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/org/bytedeco/javacpp/1.5.3/javacpp-1.5.3-${os.name}-${os.arch}.jar

Is there a way to pass down os.name and os.arch using bazel-deps?

Best