# How tu use a specific version of my own package

**URL:** <https://discourse.julialang.org/t/how-tu-use-a-specific-version-of-my-own-package/11341>\
**Category:** New to Julia\
**Created:** [June 1, 2018, 4:14pm UTC](https://discourse.julialang.org/t/how-tu-use-a-specific-version-of-my-own-package/11341 "2018-06-01T16:14:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Post date:** [June 1, 2018, 4:14pm UTC](https://discourse.julialang.org/t/how-tu-use-a-specific-version-of-my-own-package/11341/1 "2018-06-01T16:14:54Z")

</div>

Hello everyone,

This is a very basic question, but I could not find the answer anywhere.

Lets say I have my own, not registered, package Foo.jl for which the stable version has the tag 0.3.  
It is still in development so I try new things out on a separate branch.

Package Bar.jl (not registered either) uses Foo.jl, but I want Bar.jl to only use version 0.3 of Foo.jl.  
I wrote in REQUIRE file of the Bar package the following line:

```julia
Foo 0.3

```

But when I call Bar, it does not use the correct version of Foo.  
How can I solve this?  
Is the REQUIRE file only used for registered packages?  
Many thanks in advance,  
Olivier

---

<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:** [June 1, 2018, 4:44pm UTC](https://discourse.julialang.org/t/how-tu-use-a-specific-version-of-my-own-package/11341/2 "2018-06-01T16:44:57Z")

</div>

As far as I know on the old version of the package manager this is not possible without renaming `Foo`. The problem is that it’s always looking in your `Foo` directory, which presumably you have pulled to the latest commit. (Note that you _should_ be able to use tags with non-registered packages, so that isn’t the problem.) Yes, the old package manager had a _lot_ of problems.

The long term solution is the [new package manager](https://docs.julialang.org/en/latest/stdlib/Pkg/) that ships with 0.7. Since the 0.7 alpha just came out, I encourage you to try it out and get your packages running on 0.7 (after which there will be no breaking changes until 2.0). If you don’t have the appetite for that, an intermediate hack would be to clone `Foo` 0.3 into a separate `Foo0p3` directory and change the package name.

---

<div class="post-metadata">

**Author:** ![Olivier\_Merchiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olivier_merchiers/32/4073_2.png) [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Post date:** [June 1, 2018, 4:50pm UTC](https://discourse.julialang.org/t/how-tu-use-a-specific-version-of-my-own-package/11341/3 "2018-06-01T16:50:00Z")

</div>

Thank you very much for this detailed explanation!

More reasons to try 0.7 then 🙂
