# Ensuring that the package version matches (Revise-ed) code

**URL:** <https://discourse.julialang.org/t/ensuring-that-the-package-version-matches-revise-ed-code/64818>\
**Category:** New to Julia\
**Tags:** update, revise\
**Created:** [July 17, 2021, 4:26pm UTC](https://discourse.julialang.org/t/ensuring-that-the-package-version-matches-revise-ed-code/64818 "2021-07-17T16:26:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![orome](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/orome/32/26965_2.png) [@orome](https://discourse.julialang.org/u/orome)\
**Post date:** [July 17, 2021, 4:26pm UTC](https://discourse.julialang.org/t/ensuring-that-the-package-version-matches-revise-ed-code/64818/1 "2021-07-17T16:26:57Z")

</div>

When I `dev local path/to/my_pkg` and `using Revise`, changes to the source of `my_pkg` are reflected as expected in my session (`REPL` or `Jupyter`) but when I run `status` I see the old version of `my_pkg` listed there — i.e. the old version number.

I’m not sure this matters much, since the code itself is being tracked, but I’m still a bit puzzled (a) whether the discrepancy means anything and (b) how to resolve it. (I’m guessing something line `update` will accomplish b?)

(Also this seems to be related to some [puzzling behavior I was seeing](https://discourse.julialang.org/t/messed-up-environment-uuid/64651) when I changed file names.)

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [July 18, 2021, 12:03pm UTC](https://discourse.julialang.org/t/ensuring-that-the-package-version-matches-revise-ed-code/64818/2 "2021-07-18T12:03:53Z")

</div>

`pkg> resolve` updates to the current version number in the `dev`’d packages `Project.toml`. But it does not mean anything. The code is tracked either way.

---

<div class="post-metadata">

**Author:** ![orome](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/orome/32/26965_2.png) [@orome](https://discourse.julialang.org/u/orome)\
**Post date:** [July 18, 2021, 2:57pm UTC](https://discourse.julialang.org/t/ensuring-that-the-package-version-matches-revise-ed-code/64818/3 "2021-07-18T14:57:57Z")

</div>

I see, so for a `dev`ed package `resolve` (when using `Revise`) all that happens is that that number gets changed. How does that differ from `update`?

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [July 18, 2021, 10:13pm UTC](https://discourse.julialang.org/t/ensuring-that-the-package-version-matches-revise-ed-code/64818/4 "2021-07-18T22:13:22Z")

</div>

You are right: `pkg> update MyPkg` also increments the version number. But then again: it does not do anything. What matters is what you fix the version number at when you `add MyPkg` later. Until then, the version numbers really don’t do anything.
