# Compilation: don't write cache manifest on failure · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/40006855579bc42d9d2ed2b3db67be289e91750d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 40006855579bc42d9d2ed2b3db67be289e91750d

Requested commit: 40006855579bc42d9d2ed2b3db67be289e91750d

Commit: 40006855579bc42d9d2ed2b3db67be289e91750d

Tree: 75074f72d9193767243f6b805fccd9edfd402dbc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Compilation: don't write cache manifest on failure

When errors occurred during flush(), incremental cache mode was still
writing a successful cache manifest, making subsequent compilations fail
because they would get a cache hit only to find invalid data.

```

## Parents

- [01aab9f6b38d13c37719cba1fdd0b4109ac0f6d2](https://git.cafe/gitcafe/zig/commit/01aab9f6b38d13c37719cba1fdd0b4109ac0f6d2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/40006855579bc42d9d2ed2b3db67be289e91750d?format=markdown)
