# How to transfer v0.6 package to v1?

**URL:** https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486
**Category:** New to Julia
**Tags:** package
**Created:** [December 9, 2018, 11:52am UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486 "2018-12-09T11:52:44Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [December 9, 2018, 11:52am UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/1 "2018-12-09T11:52:44Z")

</div>

I am trying transfer some of my v0.6 packages to v1. I am a bit confused as how to do that at the moment. So I create the Project.toml and Manifest.toml and updated the github repo. Now I try to get into package mode by `]` and I type in `dev https://github.com/xiaodaigh/SortingLab.jl` which should clone my repo into the `Dev` folder. But when I run `using SortingLab` it gives an error, and the error isn’t important, but it’s caused by `dev url` because it cloned an older version of the repo instead of updated one.

What’s the right way to migration from v0.6 to v1?

---

<div class="post-metadata">

### Author: ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)
#### Post date: [December 9, 2018, 12:44pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/2 "2018-12-09T12:44:46Z")

</div>

Go to v0.7 first to get deprecation warnings, then transition to 1.0

---

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [December 9, 2018, 1:03pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/3 "2018-12-09T13:03:25Z")

</div>

> [@PSA: use Julia 0.7 if you are upgrading](https://discourse.julialang.org/t/psa-use-julia-0-7-if-you-are-upgrading/13321):
>
> A lot of people are posting issues where their old code doesn’t work anymore on 1.0 because some function has been renamed or removed. The 0.7 release exists exactly for this reason: your old code will work on 0.7 and give you a specific warning about how to fix your code. If you have any old code, you should use 0.7 to get these warnings before switching to 1.0; even if you just have work habits that may need changing, you should probably use 0.7 for a while. If someone posts an issue like thi…

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [December 9, 2018, 1:08pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/4 "2018-12-09T13:08:42Z")

</div>

My question is abt package development. My code works.

---

<div class="post-metadata">

### Author: ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)
#### Post date: [December 9, 2018, 1:11pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/5 "2018-12-09T13:11:10Z")

</div>

It would help with understanding your problem if you post your error message. Did you try `Pkg.resolve()`?

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [December 9, 2018, 1:17pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/6 "2018-12-09T13:17:38Z")

</div>

> [@xiaodai](#):
>
> because it cloned an older version of the repo instead of updated one

I stated the reason already

---

<div class="post-metadata">

### Author: ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)
#### Post date: [December 9, 2018, 1:25pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/7 "2018-12-09T13:25:49Z")

</div>

> [@xiaodai](#):
>
> `dev https://github.com/xiaodaigh/SortingLab.jl`

Use `dev https://github.com/xiaodaigh/SortingLab.jl#master` if the new version has not been published through the registry yet (I assume you’re talking about a published package?).

---

<div class="post-metadata">

### Author: ![00vareladavid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/00vareladavid/32/23521_2.png) [@00vareladavid](https://discourse.julialang.org/u/00vareladavid)
#### Post date: [December 9, 2018, 7:24pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/8 "2018-12-09T19:24:40Z")

</div>

What do you mean by “older version”? The branch is not `master`? Or it is `master` but `master` is not at the most recent commit pushed to github?

---

<div class="post-metadata">

### Author: ![00vareladavid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/00vareladavid/32/23521_2.png) [@00vareladavid](https://discourse.julialang.org/u/00vareladavid)
#### Post date: [December 9, 2018, 7:33pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/9 "2018-12-09T19:33:07Z")

</div>

I have verified that the latest commit is indeed being cloned (on Julia 1.0.2).

What is probably happening here is that you ran `dev`, but the folder at e.g. `.julia/dev/SortingLab` already existed. In this case `Pkg` will not modify the already existing directory.

If you want to update it, you have to use `git` on the directory directly.

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [January 14, 2019, 8:56am UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/10 "2019-01-14T08:56:50Z")

</div>

> [@Sukera](#):
>
> dev [GitHub - xiaodaigh/SortingLab.jl: Faster sorting algorithms (sort and sortperm) for Julia](https://github.com/xiaodaigh/SortingLab.jl#master)

This code doesn’t work. The error is “ERROR: invalid token”

---

<div class="post-metadata">

### Author: ![jonathanBieler](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)
#### Post date: [January 14, 2019, 12:20pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/11 "2019-01-14T12:20:42Z")

</div>

You have to type `]` to switch the REPL to package mode.

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [January 14, 2019, 12:21pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/12 "2019-01-14T12:21:38Z")

</div>

I did that. Maybe u try it

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [January 14, 2019, 12:30pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/13 "2019-01-14T12:30:23Z")

</div>

Specifying branches are not supported for `dev`. Just use

```julia
dev https://github.com/xiaodaigh/SortingLab.jl

```

which should get you the `master` branch.

---

<div class="post-metadata">

### Author: ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)
#### Post date: [January 14, 2019, 7:28pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/14 "2019-01-14T19:28:56Z")

</div>

Back to the original issue. It doesn’t get the latest updatex instead it gets the last release.

I solved it by cloning directly into the dev folder

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [January 14, 2019, 8:01pm UTC](https://discourse.julialang.org/t/how-to-transfer-v0-6-package-to-v1/18486/15 "2019-01-14T20:01:44Z")

</div>

Well, you are probably running into [https://github.com/JuliaLang/Pkg.jl/issues/465](https://github.com/JuliaLang/Pkg.jl/issues/465) then.
