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

bazel: upgrade to 8 #24567

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

bazel: upgrade to 8 #24567

wants to merge 1 commit into from

Conversation

dotnwat
Copy link
Member

@dotnwat dotnwat commented Dec 13, 2024

bazel: upgrade to 8

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.3.x
  • v24.2.x
  • v24.1.x

Release Notes

  • none

Signed-off-by: Noah Watkins <[email protected]>
@@ -6,7 +6,7 @@ edition = "2021"
publish = false

[lib]
path = "/dev/null"
path = "fake.rs"
Copy link
Member Author

Choose a reason for hiding this comment

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

seems to resolve the error below.

but, i had to expunge the cache for it to help. so it kinda seems like Cargo.toml is not hooked up as a dependency that'll invalidate whatever it is being used to generate, either on our side or in create.from_cargo.

ERROR: /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/external/rules_rust+/crate_universe/extensions.bzl:363:17: Traceback (most recent call last):
        File "/home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/external/rules_rust+/crate_universe/extensions.bzl", line 459, column 37, in _crate_impl
                _generate_hub_and_spokes(
        File "/home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/external/rules_rust+/crate_universe/extensions.bzl", line 144, column 16, in _generate_hub_and_spokes
                cargo_bazel([
        File "/home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/external/rules_rust+/crate_universe/extensions.bzl", line 363, column 17, in run
                fail("%s returned with exit code %d:\n%s" % (pretty_args, result.return_code, result.stderr))
Error in fail: /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/modextwd/rules_rust++crate/cargo-bazel generate --cargo-lockfile /home/nwatkins/src/redpanda/bazel/thirdparty/Cargo.lock --config /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/modextwd/rules_rust++crate/crates/config.json --splicing-manifest /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/modextwd/rules_rust++crate/crates/splicing_manifest.json --repository-dir /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/modextwd/rules_rust++crate/crates --metadata /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/modextwd/rules_rust++crate/crates/splicing-output/metadata.json --repin --lockfile /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/modextwd/rules_rust++crate/crates/lockfile.json --nonhermetic-root-bazel-workspace-dir /home/nwatkins/src/redpanda --paths-to-track /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/modextwd/rules_rust++crate/paths-to-track --warnings-output-path /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/modextwd/rules_rust++crate/warnings-output-file --cargo /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/external/rules_rust++rust_host_tools+rust_host_tools/bin/cargo --rustc /home/nwatkins/.cache/bazel/_bazel_nwatkins/31f1aa7012681f681e8d49a1818a8564/external/rules_rust++rust_host_tools+rust_host_tools/bin/rustc returned with exit code 1:
Error: Package "thirdparty" target "thirdparty" had an absolute source path "/dev/null", which is not supported

Copy link
Contributor

Choose a reason for hiding this comment

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

Strange

Comment on lines +20 to +22
copts.append("-Iexternal/abseil-cpp+")
copts.append("-Iexternal/re2+")
copts.append("-Iexternal/snappy+")
Copy link
Member Author

Choose a reason for hiding this comment

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

naming seems to have changed

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes there is an incompatible flag to switch it back if we want

@dotnwat dotnwat requested a review from rockwotj December 13, 2024 16:25
Comment on lines +20 to +22
copts.append("-Iexternal/abseil-cpp+")
copts.append("-Iexternal/re2+")
copts.append("-Iexternal/snappy+")
Copy link
Contributor

Choose a reason for hiding this comment

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

Yes there is an incompatible flag to switch it back if we want

@@ -6,7 +6,7 @@ edition = "2021"
publish = false

[lib]
path = "/dev/null"
path = "fake.rs"
Copy link
Contributor

Choose a reason for hiding this comment

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

Strange

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

Successfully merging this pull request may close these issues.

2 participants