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

[8.2.0] Fix reduced classpath logic on Windows #25508

Open
wants to merge 1 commit into
base: release-8.2.0
Choose a base branch
from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Mar 8, 2025

The reduced classpath computation for Java compilation actions with deps on jdeps files that were produced on Windows always resulted in an empty reduced classpath since both JavaBuilder and Turbine emitted backslash-separated paths into the jdeps proto, but Bazel matches them against slash-separated paths.

This is fixed by changing JavaBuilder to always emit slash-separated paths and updating Turbine to a version that does so (google/turbine#363).

Work towards #24876, which will also provide an integration test.

Closes #25435.

PiperOrigin-RevId: 733284003
Change-Id: Ide29965d4676fdd2bda4baaced50f984ee7284f0
(cherry picked from commit 752f72b)

Fixes #25446

The reduced classpath computation for Java compilation actions with deps on jdeps files that were produced on Windows always resulted in an empty reduced classpath since both JavaBuilder and Turbine emitted backslash-separated paths into the jdeps proto, but Bazel matches them against slash-separated paths.

This is fixed by changing JavaBuilder to always emit slash-separated paths and updating Turbine to a version that does so (google/turbine#363).

Work towards bazelbuild#24876, which will also provide an integration test.

Closes bazelbuild#25435.

PiperOrigin-RevId: 733284003
Change-Id: Ide29965d4676fdd2bda4baaced50f984ee7284f0
(cherry picked from commit 752f72b)
@fmeum fmeum requested a review from a team as a code owner March 8, 2025 09:21
@fmeum fmeum requested a review from hvadehra March 8, 2025 09:22
@github-actions github-actions bot added team-Rules-Java Issues for Java rules awaiting-review PR is awaiting review from an assigned reviewer labels Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review PR is awaiting review from an assigned reviewer team-Rules-Java Issues for Java rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant