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

Cherry-picks for Bazel 8 #18820

Merged
merged 7 commits into from
Oct 16, 2024
Merged

Conversation

comius
Copy link
Contributor

@comius comius commented Oct 15, 2024

Commits:
9c4f3b8 Prepare supporting targets for testing
b00dca3 Load Python rules everywhere in protobuf
5aa7abc Upgrade rules_cc to 0.0.13
8ec13ed Load Shell rules everywhere in protobuf
a0eb240 Replace use of C++17 with disabling a warning

Pending commits:
a038509 Convert proto toolchain string to Label (cl/684391633)
f484e9c Use rules_cc everywhere in protobuf (cl/674352147)

Rename bazel_osx_p4deps to for_bazel_tests. The name was used in the past.
Fix all bzl_libraries to have the correct set of dependencies.
Cleanup for_bazel_tests to include BUILD file and public bzl_libraries in the package.

PiperOrigin-RevId: 684713554
Bazel 8's autoloads don't work in repositories where they load from. Protobuf thus needs to load Python rules.

PiperOrigin-RevId: 685703304
@comius comius requested review from a team as code owners October 15, 2024 10:31
@comius comius requested review from haberman and removed request for a team October 15, 2024 10:31
Autoloads don't work in repositories where they load from. Protobuf thus needs to have Shell loads.

PiperOrigin-RevId: 684493665
Without it the still slightly weird setup of Bazel unit tests causes problems.

PiperOrigin-RevId: 684391633
This version is compatible with Bazel 6 and above.

PiperOrigin-RevId: 684107925
Nice to have in the future when rules_cc are in the repository, but not necessary ATM.

PiperOrigin-RevId: 674352147
@zhangskz zhangskz added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Oct 15, 2024
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Oct 15, 2024
@zhangskz
Copy link
Member

We also still need another change to remove --experimental_google_legacy_api right?

@comius
Copy link
Contributor Author

comius commented Oct 15, 2024

We also still need another change to remove --experimental_google_legacy_api right?

Perhaps let's do this as a separate PR? I still need to prepare a patch release of rules_java, it will take a couple of days.

@zhangskz zhangskz merged commit 3a78fcc into protocolbuffers:29.x Oct 16, 2024
212 of 215 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.

3 participants