# Package.Module: deduplicate identical builtin modules · gitcafe/zig

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

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

Visibility: public

Requested revision: b41a0b4768d368d81d0d33c779f919d8f315e622

Requested commit: b41a0b4768d368d81d0d33c779f919d8f315e622

Commit: b41a0b4768d368d81d0d33c779f919d8f315e622

Tree: 36bcd210c4eedce2b3bb68fe6c097dc79219e84f

Author: mlugg

Committer: mlugg

## Message

```
Package.Module: deduplicate identical builtin modules

Previously, when multiple modules had builtin modules with identical
sources, two distinct `Module`s and `File`s were created pointing at the
same file path. This led to a bug later in the frontend. These modules
are now deduplicated with a simple hashmap on the builtin source.

```

## Parents

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

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