# Using + updating packages locals

**URL:** https://discourse.julialang.org/t/using-updating-packages-locals/24065
**Category:** General Usage
**Tags:** package
**Created:** [May 10, 2019, 8:49am UTC](https://discourse.julialang.org/t/using-updating-packages-locals/24065 "2019-05-10T08:49:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pistacliffcho](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pistacliffcho/32/8518_2.png) [@pistacliffcho](https://discourse.julialang.org/u/pistacliffcho)
#### Post date: [May 10, 2019, 8:49am UTC](https://discourse.julialang.org/t/using-updating-packages-locals/24065/1 "2019-05-10T08:49:27Z")

</div>

I’m currently developing a package. At the same time, I’d like to use the package at various different locations on my machine, i.e., in `Documents\badData\analyzeBadData.jl`, I’d like to be `using MyPackage` and in `Documents\goodData\analyzeGoodData.jl`, I’d also like to be `using MyPackage`. When I make updates to MyPackage, I’d like this to be automatically reflected in both scripts, rather than needing to pull updates to both locations.

From my (perhaps very mistaken) reading of the Package manual suggests that this is **not** possible. As such, if I want the functionality I’m describing, I really should just make a local directory of scripts and `include` them every time. Is that correct? Or is there a better way to achieve this, i.e., augmenting the system path to find MyPackage or something like that?

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [May 10, 2019, 10:21am UTC](https://discourse.julialang.org/t/using-updating-packages-locals/24065/2 "2019-05-10T10:21:25Z")

</div>

> [@pistacliffcho](#):
>
> When I make updates to MyPackage, I’d like this to be automatically reflected in both scripts, rather than needing to pull updates to both locations.

If everything is on a the same filesystem, you can `dev MyPackage` for both projects.

---

<div class="post-metadata">

### Author: ![pistacliffcho](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pistacliffcho/32/8518_2.png) [@pistacliffcho](https://discourse.julialang.org/u/pistacliffcho)
#### Post date: [May 10, 2019, 10:52am UTC](https://discourse.julialang.org/t/using-updating-packages-locals/24065/3 "2019-05-10T10:52:36Z")

</div>

Thanks, but I’m still a little confused how that works. Going into the individual projects and calling `dev MyPackage` lead to an error about not being able to resolve the package.

However, I looked into [`Pkg.develop`](https://julialang.github.io/Pkg.jl/v1/api/#Pkg.develop), and provided the local path. Now my project seems to be able to find MyPackage. Do I now also need to call `dev MyPackage` for each project to continue to track updates?

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [May 10, 2019, 11:25am UTC](https://discourse.julialang.org/t/using-updating-packages-locals/24065/4 "2019-05-10T11:25:14Z")

</div>

> [@pistacliffcho](#):
>
> Going into the individual projects

It is unclear what you mean here. `pkg> activate`?

> [@pistacliffcho](#):
>
> calling `dev MyPackage` lead to an error about not being able to resolve the package

Use the full path on the filesystem, eg

```julia
pkg> dev path/to/MyPackage

```
