# "import MyPkg" uses old version of MyPkg

**URL:** <https://discourse.julialang.org/t/import-mypkg-uses-old-version-of-mypkg/52385>\
**Category:** General Usage\
**Tags:** package, pkg, workflow\
**Created:** [December 25, 2020, 11:00pm UTC](https://discourse.julialang.org/t/import-mypkg-uses-old-version-of-mypkg/52385 "2020-12-25T23:00:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Volker\_Weissmann](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@Volker\_Weissmann](https://discourse.julialang.org/u/Volker_Weissmann)\
**Post date:** [December 25, 2020, 11:00pm UTC](https://discourse.julialang.org/t/import-mypkg-uses-old-version-of-mypkg/52385/1 "2020-12-25T23:00:12Z")

</div>

Hello,

let’s say you are doing this:

> pkg\> dev path/to/MyPkg  
> julia\> import MyPkg  
> modify the contents of MyPkg/src/MyPkg.jl on disk  
> julia\> import MyPkg  
> julia\> MyPkg.func()

In Julia 1.5 this executes the new version of func(). In Julia 1.7 this executes the old version of func().

How can I get back to the old behavior? This update breaks my workflow, because I want to modify the contents of my packages without having to restart the Julia Interpreter, because restarting julia is slow.

---

<div class="post-metadata">

**Author:** ![jebej](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jebej/32/1784_2.png) [@jebej](https://discourse.julialang.org/u/jebej)\
**Post date:** [December 25, 2020, 11:24pm UTC](https://discourse.julialang.org/t/import-mypkg-uses-old-version-of-mypkg/52385/2 "2020-12-25T23:24:59Z")

</div>

This is not standard behaviour on v1.5 so you must have Revise running. Make sure it is running on v1.7 too.
