# zig build: add executable bit and file path to package hash · gitcafe/zig

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

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

Visibility: public

Requested revision: ea6e0e33a7630fb78550a5567a98420c3377350c

Requested commit: ea6e0e33a7630fb78550a5567a98420c3377350c

Commit: ea6e0e33a7630fb78550a5567a98420c3377350c

Tree: bee5ca7e7c42188b4764493d90b4695116622df8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zig build: add executable bit and file path to package hash

Unfortunately, due to the Windows equivalent of executable permissions
being a bit tricky, there is follow-up work to be done.

What is done in this commit is the hash modifications. At the fetch
layer, executable bits inside packages are ignored. In the hash
computation layer, executable bit is implemented for POSIX but not yet
for Windows. This means that the hash will not break again in the future
for packages that do not have any executable files, but it will break
for packages that do.

This is a hash-breaking change.

Closes #14308

```

## Parents

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

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