Open fonsp opened 3 hours ago
You should have seen a warning about the manifest having been resolved for a different julia version?
Sorry I shared the wrong zip file, fixed now.
@IanButterworth Thanks for taking a look! The warning is missing indeed, but I mainly want to point out:
With resolve on Julia 1.10, Statistics 1.11 was downgraded to 1.10 (good), and it showed a message that it is not downloaded and that instantiate will download it. But instantiate did not download Statistics 1.10. And it looks like you are left in a "broken state".
So I think something went wrong with the resolve.
In the Manifest.toml that was generated in my issue (where Statistics could not load), I have the following:
julia_version = "1.10.5"
...
[[deps.Statistics]]
deps = ["LinearAlgebra", "SparseArrays"]
git-tree-sha1 = "ae3bb1eb3bba077cd276bc5cfc337cc65c3075c0"
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
version = "1.10.0"
But if I create a new env in Julia 1.10 and add Statistics, the Manifest.toml contains:
julia_version = "1.10.5"
...
[[deps.Statistics]]
deps = ["LinearAlgebra", "SparseArrays"]
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
version = "1.10.0"
I guess this is related to Statistics being an upgradable stdlib (here confusingly named "former stdlib") https://github.com/JuliaLang/Pkg.jl/blob/116ba910c74ab565d348aa8a50d6dd10148f11ab/src/Types.jl#L463
Do you have the manifest entry for the 1.11 manifest? I wonder if the git-tree-sha1
isn't updated.
From the original 1.11 manifest:
[[deps.Statistics]]
deps = ["LinearAlgebra"]
git-tree-sha1 = "ae3bb1eb3bba077cd276bc5cfc337cc65c3075c0"
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
version = "1.11.1"
[deps.Statistics.extensions]
SparseArraysExt = ["SparseArrays"]
[deps.Statistics.weakdeps]
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Yeah, the git-tree-sha1
should have changed. 1.10 is on a different Statistics commit
1.11
https://github.com/JuliaLang/julia/blob/release-1.11/stdlib/Statistics.version
1.10 https://github.com/JuliaLang/julia/blob/release-1.10/stdlib/Statistics.version
I created an environment in Julia 1.11 (see attached zip), and then I
resolve
d it in Julia 1.10. This worked, but "Statistics" shows as "not downloaded", andinstantiate
cannot fix it.Overview of what happened:
Full log
Full reproducer (with empty julia depot):
Project+Manifest to start with (from Julia 1.11): julia 1.11 env original.zip
Project+Manifest at the end of this terminal session (from Julia 1.10) with broken Statistics: testenv11.zip