Looking at https://pkgdocs.julialang.org/v1/environments/#Shared-environments, I wonder if using DEPOT_PATH
you can have another environments
folder other than ~/.julia/environments
. A quick test indicates not, but I'd be interested in hearing more if anybody might know about this.
I'm not sure I understand the question but if you set DEPOT_PATH
to /tmp/testdepot
, you will have your environments
folder in /tmp/testdepot/environments
and it won't be aware of anything you have in ~/.julia
.
The experiment I did was:
/home/tec/.julia/environments/v1.10/environments/testenv
/home/tec/.julia/environments/v1.10
to DEPOT_PATH
Oh, I think this may actually work.
I just checked if it had worked incorrectly.
Ah, you're putting multiple things in DEPOT_PATH
. I've only ever used it with a single directory, to emulate a pristine installation.
Yea, I'm trying to make per-version named environments managed by my startup.jl
.
In general only the first depot is supposed to be writable, the following ones must be assumed to be read-only. So if you want to edit environments in those depots, that's probably a no?
Last updated: Nov 22 2024 at 04:41 UTC