DeterminateSystems / riff

Riff automatically provides external dependencies for Rust projects, with support for other languages coming soon.
https://riff.sh
Mozilla Public License 2.0
486 stars 13 forks source link

Make updating registry atomic #95

Closed Hoverbear closed 2 years ago

Hoverbear commented 2 years ago

Use an atomic rename.

linear[bot] commented 2 years ago
DS-309 Make updating registry.json atomic

Currently it's done using a truncate+write, which could be interrupted and leave the file in a corrupt state.

grahamc commented 2 years ago

I can look into buildkite failing in the morning, but for now we can ignore it. Looks great.