"import MyPkg" uses old version of MyPkg

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.

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

3 Likes