# get \`zig fetch\` working with the new system · gitcafe/zig

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

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

Visibility: public

Requested revision: d0bcc390e8f61ada470b524e3fd203c1af521a99

Requested commit: d0bcc390e8f61ada470b524e3fd203c1af521a99

Commit: d0bcc390e8f61ada470b524e3fd203c1af521a99

Tree: 14503dd0b9cb5b3666b6c397f3449c7931bbcb08

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
get `zig fetch` working with the new system

* start renaming "package" to "module" (see #14307)
  - build system gains `main_mod_path` and `main_pkg_path` is still
    there but it is deprecated.
* eliminate the object-oriented memory management style of what was
  previously `*Package`. Now it is `*Package.Module` and all pointers
  point to externally managed memory.
* fixes to get the new Fetch.zig code working. The previous commit was
  work-in-progress. There are still two commented out code paths, the
  one that leads to `Compilation.create` and the one for `zig build`
  that fetches the entire dependency tree and creates the required
  modules for the build runner.

```

## Parents

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

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