Determine whether a project has been instantiated

There isn’t anything off the shelf & public that I’m aware of, but this works with some internals

julia> import Pkg

julia> env = Pkg.Types.EnvCache("/Users/ian/.julia/environments/v1.11/Project.toml");

julia> Pkg.Operations.is_instantiated(env)
true

julia> all(name_uuid -> Base.isprecompiled(Base.PkgId(name_uuid[2], name_uuid[1])), env.project.deps)
false

The latter being if all Project deps are precompiled.

5 Likes