Skip to content

cargo install monocle fails #122

Description

@digizeph

Running cargo install monocle gets this error:

error[E0599]: no variant or associated item named `SoborostNet` found for enum `RpkiViewsCollector` in the current scope
  --> /Users/mingwei/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/monocle-1.2.0/src/lens/rpki/commons.rs:83:62
   |
83 |         "soborost" | "soborostnet" => Ok(RpkiViewsCollector::SoborostNet),
   |                                                              ^^^^^^^^^^^ variant or associated item not found in `RpkiViewsCollector`
   |
help: there is a variant with a similar name
   |
83 -         "soborost" | "soborostnet" => Ok(RpkiViewsCollector::SoborostNet),
83 +         "soborost" | "soborostnet" => Ok(RpkiViewsCollector::SobornostNet,
   |

error[E0004]: non-exhaustive patterns: `HistoricalRpkiSource::RpkiSpools(_)` not covered
   --> /Users/mingwei/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/monocle-1.2.0/src/lens/rpki/commons.rs:120:11
    |
120 |     match source {
    |           ^^^^^^ pattern `HistoricalRpkiSource::RpkiSpools(_)` not covered
    |
note: `HistoricalRpkiSource` defined here
   --> /Users/mingwei/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bgpkit-commons-0.10.3/src/rpki/mod.rs:213:1
    |
213 | pub enum HistoricalRpkiSource {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
220 |     RpkiSpools(RpkiSpoolsCollector),
    |     ---------- not covered
    = note: the matched value is of type `HistoricalRpkiSource`
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
    |
124 ~             .map_err(|e| anyhow!("Failed to load RPKIviews RPKI data: {}", e)),
125 ~         HistoricalRpkiSource::RpkiSpools(_) => todo!(),
    |

Some errors have detailed explanations: E0004, E0599.
For more information about an error, try `rustc --explain E0004`.
error: could not compile `monocle` (lib) due to 2 previous errors
error: failed to compile `monocle v1.2.0`, intermediate artifacts can be found at `/var/folders/t0/1flb_7n57xg1zzfz15n8dgb80000gp/T/cargo-installxRpwRf`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions