# Why is \`\]dev\` downgrading my package?

**URL:** <https://discourse.julialang.org/t/why-is-dev-downgrading-my-package/33748>\
**Category:** General Usage\
**Created:** [January 24, 2020, 2:38pm UTC](https://discourse.julialang.org/t/why-is-dev-downgrading-my-package/33748 "2020-01-24T14:38:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthieu](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Post date:** [January 24, 2020, 2:38pm UTC](https://discourse.julialang.org/t/why-is-dev-downgrading-my-package/33748/1 "2020-01-24T14:38:49Z")

</div>

I want to `]dev` the latest version of a package released on General. When I `]add` the package, the latest version gets downloaded. However, when `]dev` it, the package gets downgraded to a previous version. What is happening?

```julia
(v1.3) pkg> add FixedEffects
 Resolving package versions...
  Updating `~/.julia/environments/v1.3/Project.toml`
  [c8885935] + FixedEffects v0.7.1
  Updating `~/.julia/environments/v1.3/Manifest.toml`
  [fa961155] + CEnum v0.2.0
  [3895d2a7] + CUDAapi v2.1.0
  [c5f51814] + CUDAdrv v5.0.1
  [be33ccc6] + CUDAnative v2.8.1
  [3a865a2d] + CuArrays v1.7.0
  [c8885935] + FixedEffects v0.7.1
  [0c68f7d7] + GPUArrays v2.0.1
  [929cbde3] + LLVM v1.3.3
  [872c559c] + NNlib v0.6.4
  [a759f4b9] + TimerOutputs v0.5.3

(v1.3) pkg> dev FixedEffects
  Updating git-repo `https://github.com/FixedEffects/FixedEffects.jl.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.3/Project.toml`
  [c8885935] ↓ FixedEffects v0.7.1 ⇒ v0.6.1 [`~/.julia/dev/FixedEffects`]
  Updating `~/.julia/environments/v1.3/Manifest.toml`
  [c8885935] ↓ FixedEffects v0.7.1 ⇒ v0.6.1 [`~/.julia/dev/FixedEffects`

```

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [January 24, 2020, 2:52pm UTC](https://discourse.julialang.org/t/why-is-dev-downgrading-my-package/33748/2 "2020-01-24T14:52:36Z")

</div>

The `version` in `~/.julia/dev/FixedEffects` is probably at `0.6.1`. You can go in there and do a `git pull` if you want to. Or you could do `add FixedEffects#master` if you don’t need to edit the source code of it anymore.

---

<div class="post-metadata">

**Author:** ![matthieu](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Post date:** [January 26, 2020, 4:11pm UTC](https://discourse.julialang.org/t/why-is-dev-downgrading-my-package/33748/3 "2020-01-26T16:11:34Z")

</div>

Is using git really needed? What I don’t understand is that removing the folder at `~/.julia/dev/FixedEffects ` then doing `]dev FixedEffects` does not give me the latest version.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [January 26, 2020, 4:39pm UTC](https://discourse.julialang.org/t/why-is-dev-downgrading-my-package/33748/4 "2020-01-26T16:39:31Z")

</div>

Oh, that is an annoying Pkg bug. You can delete `.julia/clones` to fix it.
