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

build: force use latest protobuf-build #510

Merged
merged 3 commits into from
Jul 19, 2023
Merged

build: force use latest protobuf-build #510

merged 3 commits into from
Jul 19, 2023

Conversation

tisonkun
Copy link
Contributor

I'm unsure the resolving rules here but it seems 0.7.0 raft-proto possibly resolve 0.14.0 protobuf-build when building TiKV:

error: failed to run custom build command for `raft-proto v0.7.0 (https://github.com/tikv/raft-rs?branch=master#f7376671)`

Caused by:
  process didn't exit successfully: `/Users/tison/Brittani/tikv/target/debug/build/raft-proto-b62429cc873a021e/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/tison/.cargo/registry/src/garden.eu.org-1ecc6299db9ec823/protobuf-build-0.14.0/src/protobuf_impl.rs:48:71
  stack backtrace:
     0: rust_begin_unwind
               at /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/panicking.rs:575:5
     1: core::panicking::panic_fmt
               at /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/panicking.rs:65:14
     2: core::panicking::panic
               at /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/panicking.rs:114:5
     3: core::option::Option<T>::unwrap
     4: protobuf_build::protobuf_impl::check_protoc_version
     5: protobuf_build::protobuf_impl::get_protoc
     6: protobuf_build::protobuf_impl::<impl protobuf_build::Builder>::generate_files
     7: protobuf_build::Builder::generate
     8: build_script_build::main
     9: core::ops::function::FnOnce::call_once
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...

cc @BusyJay

@tisonkun tisonkun requested a review from BusyJay June 19, 2023 15:10
@tisonkun
Copy link
Contributor Author

@BusyJay Thanks for your review!

However, there can be some more issues on protobuf-build (see tikv/protobuf-build#67) so perhaps we postpone to upgrade to that new version.

@tisonkun tisonkun marked this pull request as draft June 20, 2023 01:25
@tisonkun

This comment was marked as off-topic.

I'm unsure the resolving rules here but it seems 0.7.0 raft-proto possibly resolve 0.14.0 protobuf-build when building TiKV:

```
error: failed to run custom build command for `raft-proto v0.7.0 (https://github.com/tikv/raft-rs?branch=master#f7376671)`

Caused by:
  process didn't exit successfully: `/Users/tison/Brittani/tikv/target/debug/build/raft-proto-b62429cc873a021e/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/tison/.cargo/registry/src/garden.eu.org-1ecc6299db9ec823/protobuf-build-0.14.0/src/protobuf_impl.rs:48:71
  stack backtrace:
     0: rust_begin_unwind
               at /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/std/src/panicking.rs:575:5
     1: core::panicking::panic_fmt
               at /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/panicking.rs:65:14
     2: core::panicking::panic
               at /rustc/96ddd32c4bfb1d78f0cd03eb068b1710a8cebeef/library/core/src/panicking.rs:114:5
     3: core::option::Option<T>::unwrap
     4: protobuf_build::protobuf_impl::check_protoc_version
     5: protobuf_build::protobuf_impl::get_protoc
     6: protobuf_build::protobuf_impl::<impl protobuf_build::Builder>::generate_files
     7: protobuf_build::Builder::generate
     8: build_script_build::main
     9: core::ops::function::FnOnce::call_once
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
```

cc @BusyJay

Signed-off-by: tison <[email protected]>
@tisonkun tisonkun marked this pull request as ready for review July 18, 2023 08:49
Signed-off-by: tison <[email protected]>
@tisonkun
Copy link
Contributor Author

Looks good now. Pending to merging...

Since TiKV depend on this project with git ref, perhaps we don't have to do a release.

@tisonkun
Copy link
Contributor Author

Merging...

@tisonkun tisonkun enabled auto-merge (squash) July 19, 2023 06:42
@tisonkun tisonkun disabled auto-merge July 19, 2023 06:42
@tisonkun tisonkun merged commit 9d360a3 into master Jul 19, 2023
@tisonkun tisonkun deleted the tisonkun-patch-1 branch July 19, 2023 06:42
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