-
Notifications
You must be signed in to change notification settings - Fork 68
Remove duplicate resources from test suite #338
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
base: main
Are you sure you want to change the base?
Conversation
28ec3a8
to
6ce95d7
Compare
I think I'm seeing some weird issue when applying this patch. It feels like resources are not picked up. |
I know what happened. There are cases we intentionally use a resource named exactly the same as that in production, in order to override. Since |
Another solution would be to set |
Yeah that was what I suggested, and yes the trade-off is duplicating resources in each every test jar. |
See https://github.com/bazel-contrib/rules_jvm/pull/303/files/d899e276ff1a4a9b98272ed6cd31991f09d7839a#r2042301337 for discussion. This change removes library_attrs from the two "classpath healper" libraries (which were introduced as a classpath simplification for bazel), as well as poping the resources from the kwargs if the resources library will include them.
Also added a test case for this