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

google-searchconsole1-cli doesn't build #516

Open
cameronbraid opened this issue Aug 11, 2024 · 1 comment
Open

google-searchconsole1-cli doesn't build #516

cameronbraid opened this issue Aug 11, 2024 · 1 comment

Comments

@cameronbraid
Copy link

{ command -v rustup 2>&1 >/dev/null || curl https://sh.rustup.rs -sSf | sh } && 
              cargo install google-searchconsole1-cli

...
error[E0308]: mismatched types
   --> /home/cameronbraid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/google-searchconsole1-cli-5.0.4+20240304/src/main.rs:816:13
    |
815 |         let auth = oauth2::InstalledFlowAuthenticator::with_client(
    |                    ----------------------------------------------- arguments to this function are incorrect
816 |             secret,
    |             ^^^^^^ expected `ApplicationSecret`, found `yup_oauth2::types::ApplicationSecret`
    |
    = note: `yup_oauth2::types::ApplicationSecret` and `ApplicationSecret` have similar names, but are actually distinct types
note: `yup_oauth2::types::ApplicationSecret` is defined in crate `yup_oauth2`
   --> /home/cameronbraid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yup-oauth2-8.3.2/src/types.rs:145:1
    |
145 | pub struct ApplicationSecret {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `ApplicationSecret` is defined in crate `yup_oauth2`
   --> /home/cameronbraid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yup-oauth2-9.0.0/src/types.rs:145:1
    |
145 | pub struct ApplicationSecret {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `yup_oauth2` are being used?
note: associated function defined here
   --> /home/cameronbraid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/yup-oauth2-9.0.0/src/authenticator.rs:215:12
    |
215 |     pub fn with_client<C>(
    |            ^^^^^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `google-searchconsole1-cli` (bin "searchconsole1") due to 1 previous error
error: failed to compile `google-searchconsole1-cli v5.0.4+20240304`, intermediate artifacts can be found at `/tmp/cargo-installLJzbhf`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
@Byron
Copy link
Owner

Byron commented Aug 11, 2024

Thanks for reporting - all CLIs regressed and would need a fix. Apparently, CI never checked them, which would probably be part of a fix to prevent future regression.

Something that would help already is a manual patch of a simple API that compiles again - then one could transfer this to the code generator to make the fix available to all APIs.

@Byron Byron mentioned this issue Aug 12, 2024
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