JuliaLang / Pkg.jl

Pkg - Package manager for the Julia programming language
https://pkgdocs.julialang.org
Other
610 stars 251 forks source link

Activate special environments similar to Julia's CLI arg `--project` #3821

Open ven-k opened 4 months ago

ven-k commented 4 months ago

Similar to Julia's command line argument --project,

This also changes how Pkg.activate behaves wrt temp (disallows) and stdlib (activates @stdlib/Project.toml)

Related to these, the PR adds tests and updates docs.

ven-k commented 4 months ago

While here, I wonder if this part of load_path_expand in initdefs.jl of Julialang/julia should be separated out as an internal function which Pkg can then use in parse_activateand activate(for shared = <> dispatch). This would keep the behavior in sync.