# How to use one DrWatson project in another DrWatson project?

**URL:** <https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363>\
**Category:** General Usage\
**Tags:** question, drwatson\
**Created:** [July 27, 2021, 10:39am UTC](https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363 "2021-07-27T10:39:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [July 27, 2021, 10:39am UTC](https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363/1 "2021-07-27T10:39:31Z")

</div>

I love DrWatson, and I use it whenever I start a new project.  
I have some project (all it `project_A`) which I also made a module (as insturcted in the documentation : [Real World Examples · DrWatson.jl](https://juliadynamics.github.io/DrWatson.jl/dev/real_world/#Making-your-project-a-usable-module-1)).  
Now I have another project (call it `project_B`), and I want to use `project_A` within it.  
What is the best way to do that?

Probably, I would need to make `project_A` a module that is available for `using`, but I am not sure how to do that. Or maybe, these is some other thing that is more suited for DrWatson.

---

<div class="post-metadata">

**Author:** ![JonasIsensee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonasisensee/32/4704_2.png) [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Post date:** [July 27, 2021, 1:17pm UTC](https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363/2 "2021-07-27T13:17:28Z")

</div>

In julia, you can always add a package using a `path` via `add` or `dev`.  
Then the Manifest of `project_B` would contain a link to `project_A` along with (hopefully) a git sha.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [July 28, 2021, 3:28pm UTC](https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363/3 "2021-07-28T15:28:50Z")

</div>

I am trying to follow this, but it seem like to do `add`, the project needs a UUID.  
How should I add this?

This is what I get:

```julia
(Project_B) pkg> add "~/path/to/Project_A"
     Cloning git-repo `~/path/to/Project_A`
    Updating git-repo `~/path/to/Project_A`
ERROR: expected a `uuid` entry in project file at `/var/folders/kk/vlpp4r6n1_n9r674syy04q6c0000gp/T/jl_3Aw8SO/Project.toml`

```

---

<div class="post-metadata">

**Author:** ![JonasIsensee](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonasisensee/32/4704_2.png) [@JonasIsensee](https://discourse.julialang.org/u/JonasIsensee)\
**Post date:** [July 28, 2021, 3:33pm UTC](https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363/4 "2021-07-28T15:33:18Z")

</div>

hm, then I don’t know. (have you tried generating a uuid for that package?)  
Maybe the Pkg docs [1. Introduction · Pkg.jl](https://pkgdocs.julialang.org/v1/)  
can help. This has fairly little to do with DrWatson at this point.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [July 28, 2021, 3:44pm UTC](https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363/5 "2021-07-28T15:44:24Z")

</div>

I took a look at the docs of Pkg, but I didn’t read everything yet. There is a lot of information there, so it’s not so easy to understand how one should create his own UUID. I guess it’s something that usually is done automatically when one is generating a package.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [July 30, 2021, 8:14am UTC](https://discourse.julialang.org/t/how-to-use-one-drwatson-project-in-another-drwatson-project/65363/6 "2021-07-30T08:14:35Z")

</div>

I ended up just creating a package and now I use it in my DrWatson project.  
Probably this is the proper way to do that.
