Skip to content

build(deps): bump tonic from 0.10.2 to 0.12.3 #2211

build(deps): bump tonic from 0.10.2 to 0.12.3

build(deps): bump tonic from 0.10.2 to 0.12.3 #2211

Triggered via pull request September 27, 2024 03:48
Status Failure
Total duration 3m 17s
Artifacts

rust.yml

on: pull_request
Matrix: audit
Fit to window
Zoom out
Zoom in

Annotations

15 errors
check: policy-controller/grpc/src/inbound.rs#L71
error[E0053]: method `get_port` has an incompatible type for trait --> policy-controller/grpc/src/inbound.rs:71:14 | 71 | req: tonic::Request<proto::PortSpec>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | expected `tonic::request::Request<PortSpec>`, found `tonic::Request<PortSpec>` | help: change the parameter type to match the trait: `tonic::request::Request<PortSpec>` | = note: expected signature `fn(&'life0 InboundPolicyServer<_>, tonic::request::Request<PortSpec>) -> Pin<Box<(dyn futures::Future<Output = Result<tonic::response::Response<linkerd2_proxy_api::inbound::Server>, tonic::status::Status>> + std::marker::Send + 'async_trait)>>` found signature `fn(&'life0 InboundPolicyServer<_>, tonic::Request<PortSpec>) -> Pin<Box<(dyn futures::Future<Output = Result<tonic::Response<linkerd2_proxy_api::inbound::Server>, tonic::Status>> + std::marker::Send + 'async_trait)>>`
check: policy-controller/grpc/src/inbound.rs#L87
error[E0271]: type mismatch resolving `<Pin<Box<dyn Stream<Item = Result<Server, Status>> + Send + Sync>> as Stream>::Item == Result<Server, Status>` --> policy-controller/grpc/src/inbound.rs:87:28 | 87 | type WatchPortStream = BoxWatchStream; | ^^^^^^^^^^^^^^ expected `tonic::status::Status`, found `tonic::Status` | = note: `tonic::Status` and `tonic::status::Status` have similar names, but are actually distinct types note: `tonic::Status` is defined in crate `tonic` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tonic-0.12.3/src/status.rs:37:1 | 37 | pub struct Status { | ^^^^^^^^^^^^^^^^^ note: `tonic::status::Status` is defined in crate `tonic` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tonic-0.10.2/src/status.rs:38:1 | 38 | pub struct Status { | ^^^^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `tonic` are being used? note: required by a bound in `linkerd2_proxy_api::inbound::inbound_server_policies_server::InboundServerPolicies::WatchPortStream` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/linkerd2-proxy-api-0.14.0/src/gen/io.linkerd.proxy.inbound.rs:459:17 | 458 | type WatchPortStream: tonic::codegen::tokio_stream::Stream< | --------------- required by a bound in this associated type 459 | Item = std::result::Result<super::Server, tonic::Status>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `InboundServerPolicies::WatchPortStream`
check: policy-controller/grpc/src/inbound.rs#L91
error[E0053]: method `watch_port` has an incompatible type for trait --> policy-controller/grpc/src/inbound.rs:91:14 | 91 | req: tonic::Request<proto::PortSpec>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | expected `tonic::request::Request<PortSpec>`, found `tonic::Request<PortSpec>` | help: change the parameter type to match the trait: `tonic::request::Request<PortSpec>` | = note: expected signature `fn(&'life0 InboundPolicyServer<_>, tonic::request::Request<PortSpec>) -> Pin<Box<(dyn futures::Future<Output = Result<tonic::response::Response<Pin<Box<(dyn futures::Stream<Item = Result<linkerd2_proxy_api::inbound::Server, tonic::Status>> + std::marker::Send + Sync + 'static)>>>, tonic::status::Status>> + std::marker::Send + 'async_trait)>>` found signature `fn(&'life0 InboundPolicyServer<_>, tonic::Request<PortSpec>) -> Pin<Box<(dyn futures::Future<Output = Result<tonic::Response<Pin<Box<(dyn futures::Stream<Item = Result<linkerd2_proxy_api::inbound::Server, tonic::Status>> + std::marker::Send + Sync + 'static)>>>, tonic::Status>> + std::marker::Send + 'async_trait)>>`
check: policy-controller/grpc/src/outbound.rs#L146
error[E0053]: method `get` has an incompatible type for trait --> policy-controller/grpc/src/outbound.rs:146:14 | 146 | req: tonic::Request<outbound::TrafficSpec>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | expected `Request<TrafficSpec>`, found `tonic::Request<TrafficSpec>` | help: change the parameter type to match the trait: `tonic::request::Request<TrafficSpec>` | = note: expected signature `fn(&'life0 OutboundPolicyServer<_>, tonic::request::Request<TrafficSpec>) -> Pin<Box<(dyn futures::Future<Output = Result<tonic::response::Response<linkerd2_proxy_api::outbound::OutboundPolicy>, tonic::status::Status>> + std::marker::Send + 'async_trait)>>` found signature `fn(&'life0 OutboundPolicyServer<_>, tonic::Request<TrafficSpec>) -> Pin<Box<(dyn futures::Future<Output = Result<tonic::Response<linkerd2_proxy_api::outbound::OutboundPolicy>, tonic::Status>> + std::marker::Send + 'async_trait)>>`
check: policy-controller/grpc/src/outbound.rs#L168
error[E0271]: type mismatch resolving `<Pin<Box<dyn Stream<Item = Result<OutboundPolicy, Status>> + Send + Sync>> as Stream>::Item == Result<OutboundPolicy, Status>` --> policy-controller/grpc/src/outbound.rs:168:24 | 168 | type WatchStream = BoxWatchStream; | ^^^^^^^^^^^^^^ expected `tonic::status::Status`, found `tonic::Status` | = note: `tonic::Status` and `tonic::status::Status` have similar names, but are actually distinct types note: `tonic::Status` is defined in crate `tonic` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tonic-0.12.3/src/status.rs:37:1 | 37 | pub struct Status { | ^^^^^^^^^^^^^^^^^ note: `tonic::status::Status` is defined in crate `tonic` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tonic-0.10.2/src/status.rs:38:1 | 38 | pub struct Status { | ^^^^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `tonic` are being used? note: required by a bound in `linkerd2_proxy_api::outbound::outbound_policies_server::OutboundPolicies::WatchStream` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/linkerd2-proxy-api-0.14.0/src/gen/io.linkerd.proxy.outbound.rs:757:17 | 756 | type WatchStream: tonic::codegen::tokio_stream::Stream< | ----------- required by a bound in this associated type 757 | Item = std::result::Result<super::OutboundPolicy, tonic::Status>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `OutboundPolicies::WatchStream`
check: policy-controller/grpc/src/outbound.rs#L172
error[E0053]: method `watch` has an incompatible type for trait --> policy-controller/grpc/src/outbound.rs:172:14 | 172 | req: tonic::Request<outbound::TrafficSpec>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | expected `Request<TrafficSpec>`, found `tonic::Request<TrafficSpec>` | help: change the parameter type to match the trait: `tonic::request::Request<TrafficSpec>` | = note: expected signature `fn(&'life0 OutboundPolicyServer<_>, tonic::request::Request<TrafficSpec>) -> Pin<Box<(dyn futures::Future<Output = Result<tonic::response::Response<Pin<Box<(dyn futures::Stream<Item = Result<linkerd2_proxy_api::outbound::OutboundPolicy, tonic::Status>> + std::marker::Send + Sync + 'static)>>>, tonic::status::Status>> + std::marker::Send + 'async_trait)>>` found signature `fn(&'life0 OutboundPolicyServer<_>, tonic::Request<TrafficSpec>) -> Pin<Box<(dyn futures::Future<Output = Result<tonic::Response<Pin<Box<(dyn futures::Stream<Item = Result<linkerd2_proxy_api::outbound::OutboundPolicy, tonic::Status>> + std::marker::Send + Sync + 'static)>>>, tonic::Status>> + std::marker::Send + 'async_trait)>>`
check
Process completed with exit code 1.
clippy: policy-controller/grpc/src/inbound.rs#L71
error[E0053]: method `get_port` has an incompatible type for trait --> policy-controller/grpc/src/inbound.rs:71:14 | 71 | req: tonic::Request<proto::PortSpec>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | expected `Request<PortSpec>`, found a different `Request<PortSpec>` | help: change the parameter type to match the trait: `tonic::request::Request<linkerd2_proxy_api::inbound::PortSpec>` | = note: expected signature `fn(&'life0 inbound::InboundPolicyServer<_>, tonic::request::Request<linkerd2_proxy_api::inbound::PortSpec>) -> std::pin::Pin<std::boxed::Box<(dyn futures::Future<Output = std::result::Result<tonic::response::Response<linkerd2_proxy_api::inbound::Server>, tonic::status::Status>> + std::marker::Send + 'async_trait)>>` found signature `fn(&'life0 inbound::InboundPolicyServer<_>, tonic::Request<linkerd2_proxy_api::inbound::PortSpec>) -> std::pin::Pin<std::boxed::Box<(dyn futures::Future<Output = std::result::Result<tonic::Response<linkerd2_proxy_api::inbound::Server>, tonic::Status>> + std::marker::Send + 'async_trait)>>`
clippy: policy-controller/grpc/src/inbound.rs#L87
error[E0271]: type mismatch resolving `<Pin<Box<dyn Stream<Item = Result<Server, Status>> + Send + Sync>> as Stream>::Item == Result<Server, Status>` --> policy-controller/grpc/src/inbound.rs:87:28 | 87 | type WatchPortStream = BoxWatchStream; | ^^^^^^^^^^^^^^ expected `tonic::status::Status`, found `tonic::Status` | = note: `tonic::Status` and `tonic::status::Status` have similar names, but are actually distinct types note: `tonic::Status` is defined in crate `tonic` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tonic-0.12.3/src/status.rs:37:1 | 37 | pub struct Status { | ^^^^^^^^^^^^^^^^^ note: `tonic::status::Status` is defined in crate `tonic` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tonic-0.10.2/src/status.rs:38:1 | 38 | pub struct Status { | ^^^^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `tonic` are being used? note: required by a bound in `linkerd2_proxy_api::inbound::inbound_server_policies_server::InboundServerPolicies::WatchPortStream` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/linkerd2-proxy-api-0.14.0/src/gen/io.linkerd.proxy.inbound.rs:459:17 | 458 | type WatchPortStream: tonic::codegen::tokio_stream::Stream< | --------------- required by a bound in this associated type 459 | Item = std::result::Result<super::Server, tonic::Status>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `InboundServerPolicies::WatchPortStream`
clippy: policy-controller/grpc/src/inbound.rs#L91
error[E0053]: method `watch_port` has an incompatible type for trait --> policy-controller/grpc/src/inbound.rs:91:14 | 91 | req: tonic::Request<proto::PortSpec>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | expected `Request<PortSpec>`, found a different `Request<PortSpec>` | help: change the parameter type to match the trait: `tonic::request::Request<linkerd2_proxy_api::inbound::PortSpec>` | = note: expected signature `fn(&'life0 inbound::InboundPolicyServer<_>, tonic::request::Request<linkerd2_proxy_api::inbound::PortSpec>) -> std::pin::Pin<std::boxed::Box<(dyn futures::Future<Output = std::result::Result<tonic::response::Response<std::pin::Pin<std::boxed::Box<(dyn futures::Stream<Item = std::result::Result<linkerd2_proxy_api::inbound::Server, tonic::Status>> + std::marker::Send + std::marker::Sync + 'static)>>>, tonic::status::Status>> + std::marker::Send + 'async_trait)>>` found signature `fn(&'life0 inbound::InboundPolicyServer<_>, tonic::Request<linkerd2_proxy_api::inbound::PortSpec>) -> std::pin::Pin<std::boxed::Box<(dyn futures::Future<Output = std::result::Result<tonic::Response<std::pin::Pin<std::boxed::Box<(dyn futures::Stream<Item = std::result::Result<linkerd2_proxy_api::inbound::Server, tonic::Status>> + std::marker::Send + std::marker::Sync + 'static)>>>, tonic::Status>> + std::marker::Send + 'async_trait)>>`
clippy: policy-controller/grpc/src/outbound.rs#L146
error[E0053]: method `get` has an incompatible type for trait --> policy-controller/grpc/src/outbound.rs:146:14 | 146 | req: tonic::Request<outbound::TrafficSpec>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | expected `Request<TrafficSpec>`, found a different `Request<TrafficSpec>` | help: change the parameter type to match the trait: `tonic::request::Request<linkerd2_proxy_api::outbound::TrafficSpec>` | = note: expected signature `fn(&'life0 outbound::OutboundPolicyServer<_>, tonic::request::Request<linkerd2_proxy_api::outbound::TrafficSpec>) -> std::pin::Pin<std::boxed::Box<(dyn futures::Future<Output = std::result::Result<tonic::response::Response<linkerd2_proxy_api::outbound::OutboundPolicy>, tonic::status::Status>> + std::marker::Send + 'async_trait)>>` found signature `fn(&'life0 outbound::OutboundPolicyServer<_>, tonic::Request<linkerd2_proxy_api::outbound::TrafficSpec>) -> std::pin::Pin<std::boxed::Box<(dyn futures::Future<Output = std::result::Result<tonic::Response<linkerd2_proxy_api::outbound::OutboundPolicy>, tonic::Status>> + std::marker::Send + 'async_trait)>>`
clippy: policy-controller/grpc/src/outbound.rs#L168
error[E0271]: type mismatch resolving `<Pin<Box<dyn Stream<Item = Result<OutboundPolicy, Status>> + Send + Sync>> as Stream>::Item == Result<OutboundPolicy, Status>` --> policy-controller/grpc/src/outbound.rs:168:24 | 168 | type WatchStream = BoxWatchStream; | ^^^^^^^^^^^^^^ expected `tonic::status::Status`, found `tonic::Status` | = note: `tonic::Status` and `tonic::status::Status` have similar names, but are actually distinct types note: `tonic::Status` is defined in crate `tonic` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tonic-0.12.3/src/status.rs:37:1 | 37 | pub struct Status { | ^^^^^^^^^^^^^^^^^ note: `tonic::status::Status` is defined in crate `tonic` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tonic-0.10.2/src/status.rs:38:1 | 38 | pub struct Status { | ^^^^^^^^^^^^^^^^^ = note: perhaps two different versions of crate `tonic` are being used? note: required by a bound in `linkerd2_proxy_api::outbound::outbound_policies_server::OutboundPolicies::WatchStream` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/linkerd2-proxy-api-0.14.0/src/gen/io.linkerd.proxy.outbound.rs:757:17 | 756 | type WatchStream: tonic::codegen::tokio_stream::Stream< | ----------- required by a bound in this associated type 757 | Item = std::result::Result<super::OutboundPolicy, tonic::Status>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `OutboundPolicies::WatchStream`
clippy: policy-controller/grpc/src/outbound.rs#L172
error[E0053]: method `watch` has an incompatible type for trait --> policy-controller/grpc/src/outbound.rs:172:14 | 172 | req: tonic::Request<outbound::TrafficSpec>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | expected `Request<TrafficSpec>`, found a different `Request<TrafficSpec>` | help: change the parameter type to match the trait: `tonic::request::Request<linkerd2_proxy_api::outbound::TrafficSpec>` | = note: expected signature `fn(&'life0 outbound::OutboundPolicyServer<_>, tonic::request::Request<linkerd2_proxy_api::outbound::TrafficSpec>) -> std::pin::Pin<std::boxed::Box<(dyn futures::Future<Output = std::result::Result<tonic::response::Response<std::pin::Pin<std::boxed::Box<(dyn futures::Stream<Item = std::result::Result<linkerd2_proxy_api::outbound::OutboundPolicy, tonic::Status>> + std::marker::Send + std::marker::Sync + 'static)>>>, tonic::status::Status>> + std::marker::Send + 'async_trait)>>` found signature `fn(&'life0 outbound::OutboundPolicyServer<_>, tonic::Request<linkerd2_proxy_api::outbound::TrafficSpec>) -> std::pin::Pin<std::boxed::Box<(dyn futures::Future<Output = std::result::Result<tonic::Response<std::pin::Pin<std::boxed::Box<(dyn futures::Stream<Item = std::result::Result<linkerd2_proxy_api::outbound::OutboundPolicy, tonic::Status>> + std::marker::Send + std::marker::Sync + 'static)>>>, tonic::Status>> + std::marker::Send + 'async_trait)>>`
clippy
Process completed with exit code 1.
test
Process completed with exit code 101.