# link: only write manifest if we have the exclusive lock · gitcafe/zig

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

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

Visibility: public

Requested revision: d0f675827c28b1d50e8aea6a7d29cb45ad8d4e67

Requested commit: d0f675827c28b1d50e8aea6a7d29cb45ad8d4e67

Commit: d0f675827c28b1d50e8aea6a7d29cb45ad8d4e67

Tree: 7082febc976cdfc9f7149fbe5bbeab3c16a16690

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
link: only write manifest if we have the exclusive lock

Fixes assertion tripping when racing multiple processes that will create
the same static archive.

```

## Parents

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

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