Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
1.01k stars 131 forks source link

[build failure] "google-drive3-5.0.1+20220225" due to to `google-apis-common` mismatch #388

Open JohnDimas opened 1 year ago

JohnDimas commented 1 year ago

When I try to use google-drive3 from crates.io (google-drive3-5.0.1+20220225) I got a lot of errors like that :

error[E0308]: mismatched types
     --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/google-drive3-5.0.1+20220225/src/api.rs:18216:25
      |
18214 |                     match dlg.token(&err) {
      |                           --------------- this expression has type `Result<std::option::Option<std::string::String>, Box<dyn StdError + Send + Sync>>`
18215 |                         Some(token) => token,
18216 |                         None => {
      |                         ^^^^ expected enum `Result`, found enum `std::option::Option`
      |
      = note: expected enum `Result<std::option::Option<std::string::String>, Box<dyn StdError + Send + Sync>>`
                 found enum `std::option::Option<_>`
help: try wrapping the pattern in `Ok`
      |
18216 |                         Ok(None) => {
      |                         +++    +

But when I use the git repo (instead of crates.io), I do not have these errors

Byron commented 1 year ago

Thanks for brining this to our attention. That's definitely a mistake and I hope that once drive3 goes out of beta it can be fixed naturally. Another possible fix might be to yank this version of the google-api-common crate which seems to cause the trouble due to probably having been published with the wrong version.

CC @ philippeitis