        })
    }
}

impl S3PackageRepository {
    async fn make_presigned_url(&self, method: &str) -> Result<String, RemoteError> {
        let extra_env = match &self.auth_strategy {
            AuthStrategy::Script(auth_script) => extract_env_from_script(auth_script)?,
            AuthStrategy::DefaultAwsAuth => BTreeMap::default(),
            AuthStrategy::None => {
                return Ok(self.url.clone());
            }
        };
