Stream: helpdesk (published)

Topic: Another environments folder


view this post on Zulip Timothy (Feb 28 2024 at 15:54):

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.

view this post on Zulip Gunnar Farnebäck (Feb 28 2024 at 16:06):

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.

view this post on Zulip Timothy (Feb 28 2024 at 16:08):

The experiment I did was:

Oh, I think this may actually work.

view this post on Zulip Timothy (Feb 28 2024 at 16:08):

I just checked if it had worked incorrectly.

view this post on Zulip Gunnar Farnebäck (Feb 28 2024 at 16:10):

Ah, you're putting multiple things in DEPOT_PATH. I've only ever used it with a single directory, to emulate a pristine installation.

view this post on Zulip Timothy (Feb 28 2024 at 16:11):

Yea, I'm trying to make per-version named environments managed by my startup.jl.

view this post on Zulip Mosè Giordano (Feb 28 2024 at 21:26):

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: Dec 28 2024 at 04:38 UTC