We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5fd5e commit 8f04a65Copy full SHA for 8f04a65
src/cargo/sources/git/source.rs
@@ -124,7 +124,9 @@ impl<'cfg> Source for GitSource<'cfg> {
124
}
125
126
let git_fs = self.config.git_path();
127
- git_fs.create_dir()?;
+ // 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();
130
let git_path = self.config.assert_package_cache_locked(&git_fs);
131
132
// Before getting a checkout, make sure that `<cargo_home>/git` is
0 commit comments