# compile error for import outside package path · gitcafe/zig

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

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

Visibility: public

Requested revision: 67b4de33d2729fdb21337e5a0e05f6273bce23ba

Requested commit: 67b4de33d2729fdb21337e5a0e05f6273bce23ba

Commit: 67b4de33d2729fdb21337e5a0e05f6273bce23ba

Tree: 2f79dc7eed0d993e82f777b3f90817731c2d5314

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
compile error for import outside package path

closes #2024

there's a new cli option `--main-pkg-path` which you can use to choose
a different root package directory besides the one inferred from the
root source file

and a corresponding build.zig API:
foo.setMainPkgPath(path)

```

## Parents

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

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