mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 00:41:55 +08:00

Why this change? In workflow runs, we have seen processes being stuck on a flock lock and I'm guessing because we are using `"w"` when opening the file which the ruby documentation advises against as it states "don't use "w" because it truncates the file before lock." Stuck workflow run: https://github.com/discourse/discourse/actions/runs/7690278010/job/20953851469