navidrome/utils/cache
Deluan 18f1236595 fix(cache): keep the in-place truncate on windows
Unlinking before re-creating fixes the premature-EOF spin on unix, but Windows
refuses to remove a file another handle still has open and returns a sharing
violation. Because Create surfaces that error, every cache miss on a path with a
live reader would have failed outright - worse than the spin it was meant to fix.

Split the create behind a build tag: unix unlinks for a fresh inode, Windows keeps
truncating in place and stays exposed to the spin, which is the behaviour it
already had. The unix-only spec is skipped there.
2026-07-26 01:28:38 -04:00
..
benchmark_test.go chore: go fix 2026-05-28 22:13:05 -03:00
cache_suite_test.go Rename log.LevelCritical to log.LevelFatal 2022-12-21 14:53:36 -05:00
cached_http_client.go refactor: multiple syntax updates for Go 1.26 2026-05-19 18:02:36 -03:00
cached_http_client_test.go test: fix flaky tests in utils/cache (#5567) 2026-06-05 18:06:52 -04:00
file_caches.go fix(cache): re-fetch when a cache entry outlives its data file 2026-07-26 01:07:30 -04:00
file_caches_test.go fix(cache): re-fetch when a cache entry outlives its data file 2026-07-26 01:07:30 -04:00
file_haunter.go Remove potential integer overflow conversion uint64 -> int64 2024-08-22 19:28:22 -04:00
file_haunter_test.go test: fix flaky tests in utils/cache (#5567) 2026-06-05 18:06:52 -04:00
simple_cache.go fix: dedupe and cap concurrent lyrics plugin fetches (#5792) 2026-07-16 20:10:35 -04:00
simple_cache_test.go fix: dedupe and cap concurrent lyrics plugin fetches (#5792) 2026-07-16 20:10:35 -04:00
spread_fs.go fix(cache): keep the in-place truncate on windows 2026-07-26 01:28:38 -04:00
spread_fs_test.go fix(cache): keep the in-place truncate on windows 2026-07-26 01:28:38 -04:00
spread_fs_unix.go fix(cache): keep the in-place truncate on windows 2026-07-26 01:28:38 -04:00
spread_fs_windows.go fix(cache): keep the in-place truncate on windows 2026-07-26 01:28:38 -04:00