rules_haskell
rules_haskell copied to clipboard
maven dependencies don't show up in runfiles of haskell binaries
When adding dependencies created with maven_install
to a haskell_binary
, the jars are missing from the runfiles.
Here's a minimal reproducer
git clone https://github.com/facundominguez/bug-reports -b fd/bazel-maven-haskell
cd bug-reports
nix-shell --pure --run "bazel build //..."
find -L bazel-bin -name "*collection*.jar"
The last find command produces
bazel-bin/main@[email protected]/io_tweag_inline_java/external/maven/v1/https/repo1.maven.org/mave
n2/org/apache/commons/commons-collections4/4.1/commons-collections4-4.1.jar
bazel-bin/main@[email protected]/maven/v1/https/repo1.maven.org/maven2/org/apache/commons/commons-
collections4/4.1/commons-collections4-4.1.jar
whereas I would expect commons-collections4-4.1.jar
to appear in the runfiles of the binary.
Environment
- OS name + version: centos7
- Bazel version: 3.3.1
- Version of the rules: recent master 6e05343b
Update: I can still reproduce this with bazel 4.1.0 and rules_haskell
0.14. Presumably the expectation is by virtue of this code. It would be worth checking whether this just happens with Maven dependencies; that seems oddly specific...