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 failure] "google-drive3-5.0.1+20220225" due to to google-apis-common mismatch #388

Open
JohnDimas opened this issue Oct 24, 2022 · 1 comment

Comments

@JohnDimas
Copy link
Contributor

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
Copy link
Owner

Byron commented Oct 27, 2022

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

@Byron Byron changed the title Bug in "google-drive3-5.0.1+20220225" : Result<Option> [build failure] "google-drive3-5.0.1+20220225" due to to google-apis-common mismatch Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants