# Creating multi-module projects (preparing for Pkg3)

**URL:** https://discourse.julialang.org/t/creating-multi-module-projects-preparing-for-pkg3/9808
**Category:** General Usage
**Tags:** question, package, module, package-manager
**Created:** [March 19, 2018, 1:13pm UTC](https://discourse.julialang.org/t/creating-multi-module-projects-preparing-for-pkg3/9808 "2018-03-19T13:13:53Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [March 19, 2018, 1:29pm UTC](https://discourse.julialang.org/t/creating-multi-module-projects-preparing-for-pkg3/9808/2 "2018-03-19T13:29:37Z")

</div>

In Pkg3, a package can only load modules that it declares a dependency on. The problem right now is that `PlotFuncs` does not declare a dependency on `ToyPixPixCov`.

Looking in the `Manifest.toml` file

```julia
[[PlotFuncs]]
path = "PlotFuncs"
uuid = "76fbcee0-2b78-11e8-1ecf-498917db9923"
version = "0.1.0"

[[ToyPixPixCov]]
path = "ToyPixPixCov"
uuid = "59c18c18-2b78-11e8-0607-81faa5decbcf"
version = "0.1.0"

```

We have the two packages but there is no `deps` entry for `ToyPixPixCov` in the `PlotFuncs` table.

If we manually change this file to:

```julia
[[PlotFuncs]]
deps = ["ToyPixPixCov"]
path = "PlotFuncs"
uuid = "76fbcee0-2b78-11e8-1ecf-498917db9923"
version = "0.1.0"

[[ToyPixPixCov]]
path = "ToyPixPixCov"
uuid = "59c18c18-2b78-11e8-0607-81faa5decbcf"
version = "0.1.0"

```

then everything works:

```julia
julia> using PlotFuncs
Hello World!

```

So we just need to add a way for Pkg3 package to specify dependencies (and we are actively working on that).

---

_[View the full topic](https://discourse.julialang.org/t/creating-multi-module-projects-preparing-for-pkg3/9808)._
