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 0fc3804 commit 7b1393aCopy full SHA for 7b1393a
src/bin/nix-index.rs
@@ -28,6 +28,7 @@ async fn update_index(args: &Args) -> Result<()> {
28
} else {
29
None
30
};
31
+ let using_cache = cached.is_some();
32
33
eprintln!("+ querying available packages");
34
let fetcher = Fetcher::new(CACHE_URL.to_string()).map_err(Error::ParseProxy)?;
@@ -101,7 +102,7 @@ async fn update_index(args: &Args) -> Result<()> {
101
102
}
103
eprintln!();
104
- if args.path_cache {
105
+ if args.path_cache && !using_cache {
106
eprintln!("+ writing path cache");
107
let mut output = io::BufWriter::new(File::create("paths.cache").map_err(|e| {
108
Error::WritePathsCache {
0 commit comments