mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
* Download each Factorio version only once at a time Instances starting together each downloaded the new version into the same .tmp file and extracted into the same version directory, corrupting the install. Keep the downloads in progress in a map by target directory and let later callers wait on the existing download. Fixes #1105 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RhMv1AxB8EZdyZoSJhyNmY * Wait for a download in progress whose version looks installed The changelog is extracted partway through the archive, so a server checking during the extraction saw the version as installed and could start the half-extracted install. Treat a version with a download in progress as not installed, so the server waits on that download. Hold the mocked download open in the concurrency tests and wait for the second server to reach the waiting path instead of relying on a delay. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RhMv1AxB8EZdyZoSJhyNmY --------- Co-authored-by: ILLISIS <jayson.harris01@gmail.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>