Skip to content

Commit 8f04a65

Browse files
committed
Actually ignore errors
1 parent ae5fd5e commit 8f04a65

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cargo/sources/git/source.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ impl<'cfg> Source for GitSource<'cfg> {
124124
}
125125

126126
let git_fs = self.config.git_path();
127-
git_fs.create_dir()?;
127+
// Ignore errors creating it, in case this is a read-only filesystem:
128+
// perhaps the later operations can succeed anyhow.
129+
let _ = git_fs.create_dir();
128130
let git_path = self.config.assert_package_cache_locked(&git_fs);
129131

130132
// Before getting a checkout, make sure that `<cargo_home>/git` is

0 commit comments

Comments
 (0)