Bump fetcher cache version

We're getting more reports in https://github.com/NixOS/nix/issues/10985

It appears that something hasn't gone right process-wise.
I find this mistake not to be worth investigating, but rather something
to pay attention to going forward.

Let's nip this in the bud.

Closes https://github.com/NixOS/nix/issues/10985

(cherry picked from commit e948c8e033)

# Conflicts:
#	src/libfetchers/cache.cc
This commit is contained in:
Robert Hensing 2024-11-19 18:59:08 +01:00 committed by Mergify
parent 8e8a572d37
commit 4d50e57546

View File

@ -36,7 +36,11 @@ struct CacheImpl : Cache
{
auto state(_state.lock());
<<<<<<< HEAD
auto dbPath = getCacheDir() + "/nix/fetcher-cache-v2.sqlite";
=======
auto dbPath = getCacheDir() + "/fetcher-cache-v3.sqlite";
>>>>>>> e948c8e03 (Bump fetcher cache version)
createDirs(dirOf(dbPath));
state->db = SQLite(dbPath);