How to pin a package to previous version on Julia 1.0?

The uuid refers to the package, not the version. If you want to pin a specific version, use add to obtain it, then pin to pin it.

(v0.7) pkg> add Blink
[...]

(v0.7) pkg> st
    Status `~/.julia/environments/v0.7/Project.toml`
  [ad839575] Blink v0.7.0

(v0.7) pkg> add Blink@0.6.2
 Resolving package versions...
  Updating `~/.julia/environments/v0.7/Project.toml`
  [ad839575] ↓ Blink v0.7.0 ⇒ v0.6.2
  Updating `~/.julia/environments/v0.7/Manifest.toml`
  [ad839575] ↓ Blink v0.7.0 ⇒ v0.6.2
[...]

(v0.7) pkg> st
    Status `~/.julia/environments/v0.7/Project.toml`
  [ad839575] Blink v0.6.2

(v0.7) pkg> pin Blink
 Resolving package versions...
  Updating `~/.julia/environments/v0.7/Project.toml`
  [ad839575] ~ Blink v0.6.2 ⇒ v0.6.2 ⚲
  Updating `~/.julia/environments/v0.7/Manifest.toml`
  [ad839575] ~ Blink v0.6.2 ⇒ v0.6.2 ⚲

(v0.7) pkg> st
    Status `~/.julia/environments/v0.7/Project.toml`
  [ad839575] Blink v0.6.2 ⚲
3 Likes