# Pkg(3): develop package which depends on local/unregistered package

**URL:** <https://discourse.julialang.org/t/pkg-3-develop-package-which-depends-on-local-unregistered-package/12164>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [July 4, 2018, 2:42pm UTC](https://discourse.julialang.org/t/pkg-3-develop-package-which-depends-on-local-unregistered-package/12164 "2018-07-04T14:42:54Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![jlapeyre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlapeyre/32/4514_2.png) [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Post date:** [July 12, 2018, 4:16pm UTC](https://discourse.julialang.org/t/pkg-3-develop-package-which-depends-on-local-unregistered-package/12164/21 "2018-07-12T16:16:36Z")

</div>

No, that did not work. I tried `Pkg.clone(urltoPkg)` at the Julia prompt. Got a message about this being a legacy action. Something was downloaded to an unknown location and the Project and Manifest files in the `environment` directory were altered. I don’t know if this has caused problems. But, I find the following in the README for `Pkg`

```julia
If you want to develop this package do the following steps:
- Clone the repo anywhere.
- Remove the `uuid = ` line from the `Project.toml` file.
- Change the current directory to the Pkg repo you just cloned and start julia with `julia --project`.
- `import Pkg` will now load the files in the cloned repo instead of the Pkg stdlib .
- To test your changes, simple `include("test/runtests.jl")`.

```

as an alternative, which seems to work. Before, I understood “remove the uuid from Project.toml” to be referring to the file in `environment` directory, so I removed it. Now, I see it is referring to the `Pkg` repo.

---

<div class="post-metadata">

**Author:** ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Post date:** [July 12, 2018, 8:40pm UTC](https://discourse.julialang.org/t/pkg-3-develop-package-which-depends-on-local-unregistered-package/12164/22 "2018-07-12T20:40:08Z")

</div>

> [@Tamas\_Papp](#):
>
> Just to recap, if one is willing to make the transition to project files, then the recommended workflow for two _unregistered_ projects `A` and `B` , with `B` depending on `A` is
> 
> ```julia
> shell> cd /wherever/A/is
> (v0.7) pkg> init # and add an UUID, dependencies, etc
> (v0.7) pkg> dev /wherever/A/is
> shell> cd /path/of/B
> (v0.7) pkg> init # and add, etc
> (v0.7) pkg> activate .
> (A) pkg> dev /wherever/A/is
> (A) pkg> activate # no ., global env
> (v0.7) pkg> dev /path/of/B
> 
> ```

Something like this should appear in the documentation somewhere, I think.

---

<div class="post-metadata">

**Author:** ![ianfiske](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Post date:** [August 6, 2018, 7:32pm UTC](https://discourse.julialang.org/t/pkg-3-develop-package-which-depends-on-local-unregistered-package/12164/23 "2018-08-06T19:32:47Z")

</div>

I just tried these steps, but it seems like I don’t have the `init` command:

```julia
julia> VERSION
v"0.7.0-rc2.0"
shell> cd ~/LinearFractional.jl/
(v0.7) pkg> init
ERROR: invalid command: "init"

```

Was this changed to something else in rc2?

---

<div class="post-metadata">

**Author:** ![ianfiske](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Post date:** [August 6, 2018, 8:24pm UTC](https://discourse.julialang.org/t/pkg-3-develop-package-which-depends-on-local-unregistered-package/12164/24 "2018-08-06T20:24:26Z")

</div>

This doesn’t answer my exact question above, but following [[ANN] Introducing Upgradathon Fridays - #3 by fredrikekre](https://discourse.julialang.org/t/ann-introducing-upgradathon-fridays/12047/3) is working better for me. To start upgrading a [private] 0.6 package to 0.7 directly, I use `develop` on the remote git repo URL and then start working on the upgrade in my `~/.julia/dev/` directory.

[Previous page](https://discourse.julialang.org/t/pkg-3-develop-package-which-depends-on-local-unregistered-package/12164.md?page=1)
