Pin package seems not to be working

I want to pin CSV.jl to version 0.3.1 because version 0.4.1 cannot read my file.
When I pin it, I cannot update it anymore, however, installing a new package makes it change the version.

(v1.0) pkg> add CSV@0.3.1
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
  [336ed68f] ↓ CSV v0.4.1 ⇒ v0.3.1
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [336ed68f] ↓ CSV v0.4.1 ⇒ v0.3.1
  [7d512f48] + InternedStrings v0.7.0
  [69de0a69] - Parsers v0.2.7

(v1.0) pkg> pin CSV@0.3.1
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
  [336ed68f] ~ CSV v0.3.1 ⇒ v0.3.1 ⚲
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [336ed68f] ~ CSV v0.3.1 ⇒ v0.3.1 ⚲

(v1.0) pkg> up
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/JuliaPlots/Plots.jl.git`
  Updating git-repo `https://github.com/sglyon/PlotlyJS.jl.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.0/Manifest.toml`
 [no changes]

(v1.0) pkg> dev SingularSpectrumAnalysis
  Updating git-repo `https://github.com/baggepinnen/SingularSpectrumAnalysis.jl.git`
┌ Warning: project file for SingularSpectrumAnalysis at /tmp/tmp6mC8cD is missing a `version` entry
└ @ Pkg.Types /build/julia/src/julia/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:700
[ Info: Path `/home/bertrand/.julia/dev/SingularSpectrumAnalysis` exists and looks like the correct package, using existing path instead of cloning
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
  [336ed68f] ↑ CSV v0.3.1 ⚲ ⇒ v0.4.1 ⚲
  [d9d29d28] + SingularSpectrumAnalysis v0.0.0 [`~/.julia/dev/SingularSpectrumAnalysis`]
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [336ed68f] ↑ CSV v0.3.1 ⚲ ⇒ v0.4.1 ⚲
  [7d512f48] - InternedStrings v0.7.0
  [69de0a69] + Parsers v0.2.7
  [d9d29d28] + SingularSpectrumAnalysis v0.0.0 [`~/.julia/dev/SingularSpectrumAnalysis`]

(v1.0) pkg> st
    Status `~/.julia/environments/v1.0/Project.toml`
  [336ed68f] CSV v0.4.1 ⚲
  [717857b8] DSP v0.5.1
  ...

(v1.0) pkg> add CSV@0.3.1
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
 [no changes]
  Updating `~/.julia/environments/v1.0/Manifest.toml`
 [no changes]

Is it expected?

No, it is a bug, but it has been fixed, and the fix will be in Julia v1.0.1 that will be released in a week or so.

1 Like

Could you share the csv file that is having trouble? Or open an issue w/ CSV.jl? The update tried very hard to not break anything.

Here it is:
https://github.com/JuliaData/CSV.jl/issues/310