tellerops / teller

Cloud native secrets management for developers - never leave your command line for secrets.
https://github.com/tellerops/teller
Apache License 2.0
2.8k stars 183 forks source link

Error compiling #295

Open r2DoesInc opened 1 month ago

r2DoesInc commented 1 month ago

When building teller-cli I ran across this issue

error[E0599]: no method named `https_or_http` found for enum `std::result::Result` in the current scope
   --> teller-providers/src/providers/google_secretmanager.rs:65:22
    |
63  |                   hyper_rustls::HttpsConnectorBuilder::new()
    |                   ------------------------------------------
    |                   |
    |  _________________method `https_or_http` is available on `HttpsConnectorBuilder<WantsTlsConfig>`
    | |
64  | |                     .with_native_roots()
65  | |                     .https_or_http()
    | |                     -^^^^^^^^^^^^^ method not found in `Result<HttpsConnectorBuilder<WantsSchemes>, Error>`
    | |_____________________|
    |
    |
note: the method `https_or_http` exists on the type `HttpsConnectorBuilder<WantsSchemes>`
   --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-rustls-0.25.0/src/connector/builder.rs:144:5
    |
144 |     pub fn https_or_http(self) -> ConnectorBuilder<WantsProtocols1> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: use the `?` operator to extract the `HttpsConnectorBuilder<WantsSchemes>` value, propagating a `Result::Err` value to the caller
    |
64  |                     .with_native_roots()?
    |                                         +
r2DoesInc commented 1 month ago

I tried fixing the issue, the project compiles but the fix I applied is causing the build actions to fail on github, so Im not sure that its a valid solution - I just added the ? suggested in the logs.