diff --git a/src/pkg.jl b/src/pkg.jl index f4e7a528..ed7f4f09 100644 --- a/src/pkg.jl +++ b/src/pkg.jl @@ -154,6 +154,13 @@ function package_toml(package::Symbol) compile_toml["compat"] = toml["compat"] end write_toml(precompile_toml, compile_toml) + # Resolve the Manifest after adding the new packages to the Project + run_julia(""" + using Pkg + Pkg.resolve() + Pkg.instantiate() + """, project = precompile_toml) + precompile_toml, snoopfile end @@ -180,4 +187,4 @@ function get_snoopfile(pkg_root) snoopfile = joinpath(pkg_root, "test", "runtests.jl") end return snoopfile -end \ No newline at end of file +end