# stage2: fix Cache not calling ftruncate in writeManifest · gitcafe/zig

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

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

Visibility: public

Requested revision: 73167e80f8a1d440ebc5725a165b7cf484b96170

Requested commit: 73167e80f8a1d440ebc5725a165b7cf484b96170

Commit: 73167e80f8a1d440ebc5725a165b7cf484b96170

Tree: cb9eca574d1bc37ccdd2e54732a350f23a75b18a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix Cache not calling ftruncate in writeManifest

this led to a corrupt cache when the number of files got smaller. it is
now fixed.

```

## Parents

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

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