Skip to content

Commit

Permalink
Don't require vendor path to exist for PackageStore
Browse files Browse the repository at this point in the history
  • Loading branch information
xfbs committed Oct 23, 2023
1 parent 4f85317 commit 069eca3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ impl PackageStore {

/// Check if this store exists
async fn exists(&self) -> miette::Result<bool> {
let meta = fs::metadata(&self.proto_vendor_path())
.await
.into_diagnostic()?;
let meta = fs::metadata(&self.proto_path()).await.into_diagnostic()?;

Ok(meta.is_dir())
}
Expand Down

0 comments on commit 069eca3

Please sign in to comment.