# Autodoc: fix root module name in sources.tar · gitcafe/zig

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

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

Visibility: public

Requested revision: 4fac5bd601da12140586115dc9ddc6a92577ff6d

Requested commit: 4fac5bd601da12140586115dc9ddc6a92577ff6d

Commit: 4fac5bd601da12140586115dc9ddc6a92577ff6d

Tree: 8746445aaaf7b1895b650d0698c98892961f17e2

Author: Ian Johnson

Committer: Andrew Kelley

## Message

```
Autodoc: fix root module name in sources.tar

This was overlooked in #19458. Using the fully qualified name of each
module usually makes sense, but there is one module where it does not,
namely, the root module, since its name is `root`. The original Autodoc
tar creation logic used `comp.root_name` for the root module back when
it was the only module included in `sources.tar`, and that made sense.
Now, we get the best of both worlds, using the proper root name for the
root module while using the module name for the rest.

```

## Parents

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

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