Xuanwo commented on issue #4992: URL: https://github.com/apache/opendal/issues/4992#issuecomment-2282481616
Hi, thanks for the report. reqsign will try to load the following env to decide the path to load file: https://github.com/Xuanwo/reqsign/blob/c24accec764b34c4db600bb99e03ed9c80ba5234/src/google/credential.rs#L185-L210 ```rust fn load_via_well_known_location(&self) -> Result<Option<Credential>> { if self.disable_well_known_location { return Ok(None); } let config_dir = if let Ok(v) = env::var("APPDATA") { v } else if let Ok(v) = env::var("XDG_CONFIG_HOME") { v } else if let Ok(v) = env::var("HOME") { format!("{v}/.config") } else { // User's env doesn't have a config dir. return Ok(None); }; let cred = Self::load_file(&format!( "{config_dir}/gcloud/application_default_credentials.json" ))?; Ok(Some(cred)) } ``` Do you have different `XDG_CONFIG_HOME` configurations? I will re-check the `gcloud`'s load logic to make sure we can align. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
