bazel-contrib / bazel-contrib/rules_scala

no-src jars do not add entries for directories

Open
#327 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
384
Forks
292
Avg merge
2d 21h
Merged PRs (30d)
46

Description

#289 changed the behavior of zipping a no-src jar in the sense that the zipper doesn't create entries for the directories. I guess that we're just using it wrong and that we need to also feed it the directories entries themselves but haven't gotten around to verifying and fixing it.
This is a problem for example when you want to get all files from a directory on the classpath. In that case the directory isn't found.
Current workaround: use java_library.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the behavior changed in #289 and reproducing a no-src jar lookup for a directory on the classpath. Compare it with the java_library workaround; done means no-src jars include directory entries so files can be found through that directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, scala
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.