Fix Manifest-file warnings for Pluto notebooks

Hi,
When loading a certain Pluto notebook (written beginning 2022), I get the following two warning messages.

julia> Pluto.run()
[...]
Warning: The active manifest file at [...] has an old format that is being
maintained. To update to the new format, which is supported by Julia versions
ā‰„ 1.6.2, run `Pkg.upgrade_manifest()` which will blah blah.
@ Pkg.Types .../default-macmini-aarch64-1-0/julialang/julia-release-1-dot-8/usr/share/julia/stdlib/v1.8/Pkg/src/manifest.jl:287

Warning: The active manifest file is an older format with no julia version entry.
Dependencies may have been resolved with a different julia version.
@ [...]

I think I could probably fix them outside of Pluto ā€“ the warning message says how.
But could somebody help me to understand how to do that for a Pluto notebook? Do I have to run Pkg.xyz in a cell? What should I activate? :thinking:

Running the following code only once fixed the same problem for me:

begin
    using Pkg 
    Pkg.upgrade_manifest()
    Pkg.resolve()
end

Then I removed the cell from the Pluto notebooks.

4 Likes