aptos-core
aptos-core copied to clipboard
[Bug] Failed to install aptos cli
🐛 Bug
To reproduce
Code snippet to reproduce
cargo install --git https://github.com/aptos-labs/aptos-core.git aptos --tag aptos-cli-latest
Stack trace/error message
Compiling tracing-subscriber v0.3.12
error[E0407]: method `event_enabled` is not a member of trait `Subscriber`
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-subscriber-0.3.12/src/layer/layered.rs:142:5
|
142 | / fn event_enabled(&self, event: &Event<'_>) -> bool {
143 | | if self.layer.event_enabled(event, self.ctx()) {
144 | | // if the outer layer enables the event, ask the inner subscriber.
145 | | self.inner.event_enabled(event)
... |
149 | | }
150 | | }
| |_____^ not a member of trait `Subscriber`
error[E0407]: method `event_enabled` is not a member of trait `tracing_core::Subscriber`
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-subscriber-0.3.12/src/fmt/mod.rs:401:5
|
401 | / fn event_enabled(&self, event: &Event<'_>) -> bool {
402 | | self.inner.event_enabled(event)
403 | | }
| |_____^ not a member of trait `tracing_core::Subscriber`
error[E0599]: no method named `event_enabled` found for type parameter `S` in the current scope
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-subscriber-0.3.12/src/layer/layered.rs:145:24
|
145 | self.inner.event_enabled(event)
| ^^^^^^^^^^^^^ method not found in `S`
|
= help: items from traits can only be used if the type parameter is bounded by the trait
help: the following trait defines an item `event_enabled`, perhaps you need to restrict type parameter `S` with it:
|
94 | impl<L, S: layer::Layer> Subscriber for Layered<L, S>
| ~~~~~~~~~~~~~~~
error[E0599]: the method `event_enabled` exists for struct `layered::Layered<F, layered::Layered<fmt_layer::Layer<Registry, N, E, W>, Registry>>`, but its trait bounds were not satisfied
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-subscriber-0.3.12/src/fmt/mod.rs:402:20
|
402 | self.inner.event_enabled(event)
| ^^^^^^^^^^^^^ method cannot be called on `layered::Layered<F, layered::Layered<fmt_layer::Layer<Registry, N, E, W>, Registry>>` due to unsatisfied trait bounds
|
::: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-subscriber-0.3.12/src/layer/layered.rs:27:1
|
27 | pub struct Layered<L, I, S = I> {
| -------------------------------
| |
| method `event_enabled` not found for this
| doesn't satisfy `_: layer::Layer<layered::Layered<fmt_layer::Layer<Registry, N, E, W>, Registry>>`
|
note: trait bound `layered::Layered<fmt_layer::Layer<Registry, N, E, W>, Registry>: layer::Layer<layered::Layered<fmt_layer::Layer<Registry, N, E, W>, Registry>>` was not satisfied
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-subscriber-0.3.12/src/layer/layered.rs:245:8
|
242 | impl<S, A, B> Layer<S> for Layered<A, B, S>
| -------- ----------------
...
245 | B: Layer<S>,
| ^^^^^^^^ unsatisfied trait bound introduced here
note: the following trait must be implemented
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-subscriber-0.3.12/src/layer/mod.rs:709:1
|
709 | / pub trait Layer<S>
710 | | where
711 | | S: Subscriber,
712 | | Self: 'static,
... |
1207 | | }
1208 | | }
| |_^
= help: items from traits can only be used if the trait is implemented and in scope
note: `layer::Layer` defines an item `event_enabled`, perhaps you need to implement it
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tracing-subscriber-0.3.12/src/layer/mod.rs:709:1
|
709 | / pub trait Layer<S>
710 | | where
711 | | S: Subscriber,
712 | | Self: 'static,
... |
1207 | | }
1208 | | }
| |_^
Expected Behavior
Installed correctly.
System information
Please complete the following information: cargo 1.61.0 Ubuntu22.04
Additional context
I believe it's due to tokio update.
[Reference] : Github tokio
https://github.com/tokio-rs/tracing/commit/7a9e1e4569971859849cfd546cc8412d762386a8
I've removed the aptos-cli-latest
tag since it was often out of data. @qyeah98 are you still having this occur?
None. Thanks for update !