Why is `]dev` downgrading my package?

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?

(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`

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.

1 Like

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.

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

2 Likes