fix: delete other files/folder in downloads: #57

This commit is contained in:
Kasper Juul Hermansen 2023-04-25 08:33:43 +02:00
parent ff06cde662
commit 9d3c21d16b
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 1 additions and 15 deletions

View File

@ -13,7 +13,7 @@ A dagger sdk written in rust for rust.
- [ ] Start MkBook on how to actually use the sdk
- [ ] Update to newest upstream release
- [ ] Fix bugs
- [ ] Run in conjunction with golang and other sdks
- [x] Run in conjunction with golang and other sdks
- [ ] Stabilize the initial `Arc<Query>` model into something more extensible
## Examples

View File

@ -135,20 +135,6 @@ impl Downloader {
.context("failed to download CLI from archive")?;
}
for file in self.cache_dir()?.read_dir()? {
if let Ok(entry) = file {
let path = entry.path();
if path != cli_bin_path {
tracing::debug!(
path = path.display().to_string(),
cli_bin_path = cli_bin_path.display().to_string(),
"deleting existing dagger-engine"
);
std::fs::remove_file(path)?;
}
}
}
Ok(cli_bin_path)
}