Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java_test_suite has trouble finding srcs specified as a filegroup #316

Open
programmablemike opened this issue Jan 10, 2025 · 0 comments
Open

Comments

@programmablemike
Copy link

programmablemike commented Jan 10, 2025

I’m having an issue in one of my projects with the bazel-contrib/rules_jvm package java_test_suite where I specify the srcs using a filegroup, but the source files are never found. However, using a glob(["src/test/java/**/*.java"]) or manually specifying the list of source files does work.

For reference I’m using Bazel 8.0.0 (via Bazelisk) and the following MODULE dependencies:

bazel_dep(name = "rules_java", version = "8.6.3")
bazel_dep(name = "rules_jvm_external", version = "6.6")
bazel_dep(name = "contrib_rules_jvm", version = "0.27.0")

I put together an example repository to demonstrate the issue here: https://github.com/programmablemike/issue-bazel-java-test-suite-filegroup/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant