# package manager: set executable bit · gitcafe/zig

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

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

Visibility: public

Requested revision: 34bb670bb695969ce57cb3fc0e1bb673a1cc7243

Requested commit: 34bb670bb695969ce57cb3fc0e1bb673a1cc7243

Commit: 34bb670bb695969ce57cb3fc0e1bb673a1cc7243

Tree: 751db6d2115ab382af6536e928bfc6d885fca627

Author: Igor Anić

Committer: Andrew Kelley

## Message

```
package manager: set executable bit

Based on file content. Detects elf magic header or shebang line.

Executable bit is ignored in hash calculation, as it was before this. So
packages hashes are not changed.

Reference:
https://github.com/ziglang/zig/issues/17463#issuecomment-1984798880

Fixes: 17463

Test is here:
https://github.com/ianic/zig-fetch-test/blob/7c4600d7bb263f9b72fe3d0b70071f42be89e25c/src/main.zig#L307
(if #19500 got accepted I'll move this test to the Fetch.zig)

```

## Parents

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

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