Skip to content

Conversation

@FaBrand
Copy link
Contributor

@FaBrand FaBrand commented Oct 23, 2025

I would like to add some compatibility changes i had before as patches that should be (mostly) compatible

One that change breaks compatibility with bazel version < 7.1.0 (the get_auth method from bazel_tools got introduced with 7.1.0)

Confined the buildifier formatting changes in one commit for reviewability

Remove dependency on host shell
since bash is not available on Windows
In case the content is e.g. behind a mirror with authentication, this is
necessary.

Note: get_auth was introduced in 7.1.0 and would break compatibility
with earlier versions
outputs = {
"ksp_generated_java_srcjar": ksp_generated_java_srcjar,
"ksp_generated_classes_jar": ksp_generated_classes_jar,
"ksp_generated_java_srcjar": ksp_generated_java_srcjar,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's happening here? Looks like a sort or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had buildifier set-up to automatically fix the unsorted-dict-items. I decided to keep it as a simple fix, but bundled in the first of the three commits.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you include an update to the buildifier rules, since we'll need to keep this in order?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@restingbull To confirm since i'm not 100% sure which of the two you mean?

a) Include the unsorted-dict-items in the buildifier.{check,fix} targets so everything gets sorted
b) Revert the auto-sort commit and add the warning to the excluded ones

I pushed 2 more commits.

One that adds the option to the buildifier rule and one that fixes a deprecation error i found along the way

@restingbull restingbull self-assigned this Oct 24, 2025
Added fixes with:
```
bazel run //:buildifier.fix
```
When running `//:buildifier.check` this deprecation warning is issued
```
buildifier: selecting diff program with the BUILDIFIER_DIFF, BUILDIFIER_MULTIDIFF, and DISPLAY environment variables is deprecated, use flags -diff_command and -multi_diff instead
```
@FaBrand
Copy link
Contributor Author

FaBrand commented Oct 27, 2025

@restingbull And some more commits with some inconsistencies regarding the buildifier checks :)

@FaBrand FaBrand force-pushed the windows-portability-fixes branch from 4778c10 to 5e55cb5 Compare October 27, 2025 13:22
@restingbull restingbull merged commit f58613c into bazelbuild:master Oct 27, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants