Files
bircniandsilverwind 88220edc60 fix(settings): retry reading a file being replaced on Windows (#105)
On Windows, opening `config.yml` while another process replaces it fails with a sharing violation. `AtomicWrite` already retries its rename, but the unlocked reads did not, so any `gt` could fail while another updated its settings. This also made `TestConcurrentUpdatesAndHostSeparation` flaky in CI.

Reads of the settings and credential files now retry for up to 2 seconds on that error only, so a file that really is unreadable still fails at once.

---------

Co-authored-by: silverwind <[email protected]>
Reviewed-on: https://gitea.com/gitea/cli/pulls/105
Reviewed-by: Zettat123 <[email protected]>
2026-11-09 20:36:28 +00:00
..
2026-10-18 22:57:54 +02:00