You can absolutely do this in Julia as well. The best approach is probably to do something like this in the top directory of a project:
julia> # press `]` to activate the package REPL mode...
(v1.1) pkg> activate .
(Project1) pkg> add HTTP@0.8
This will create Project.toml
and Manifest.toml
files in Project1
. After that if you run julia --project
anywhere inside of that project directory, the initial active project will be Project1
instead of v1.1
. In the other project directory, do the same thing but add HTTP 0.7
instead. These are totally separate and independent sets of packages and versions. If you commit the project and manifest files in version control, you’ll have a perfect record of your entire Julia dependency graph for each project.