# Autodoc: add all modules to sources.tar · gitcafe/zig

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

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

Visibility: public

Requested revision: 424dd17b6cc3db868c837f6b7a8fa36dac2166c1

Requested commit: 424dd17b6cc3db868c837f6b7a8fa36dac2166c1

Commit: 424dd17b6cc3db868c837f6b7a8fa36dac2166c1

Tree: 91d247d8250024fd7e6161c9ca11a4553f5854ea

Author: Ian Johnson

Committer: Ian Johnson

## Message

```
Autodoc: add all modules to sources.tar

Closes #19403

This commit adds all modules in the compilation to the generated
`sources.tar` when using `-femit-docs` (including `std` and `builtin`).
Additionally, it considers the main module when doing so, rather than
the root module, so the behavior when running `zig test -femit-docs
test.zig` is now correct.

```

## Parents

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

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