Startup.jl being replaced constantly

Hi Guys,

Im hoping you could assist with an issue im having, I work at a university and I have never used Julia before so im getting a little lost.

We have Julia installed for students and we had a request to have a shared depot to reduce configuration time as it was taking over an hour for all the required packages. I have set the JULIA_DEPOT_PATH as two locations, the users personal network location (this has a small data cap that with all the packages installed exceeded their capacity) and a shared location on the local hard drive.

This hasn’t seemed to do anything as the startup.jl file only contains the first location their personal networked drive with push!(DEPOT_PATH,“H:\Julia”)

After deploying the file on every student with the additional push!(DEPOT_PATH,“Shared location”) it appears to work for the first time that Julia is loaded however it keeps replacing the file with one that only has the first depot.

Any idea what settings I can change so that Julia doesn’t keep replacing the file?

Thanks for the help

Julia shouldn’t itself replace that file, especially not in the manner you’re describing. Usually, startup.jl is used on a per-user basis, it’s not usually on a shared drive. Check that your file sharing solution isn’t replacing the files.

1 Like

Can’t say I fully understand your setup, but to stack Julia depots (one, writable by the user, and another shared one, not writable by the user) you can do export JULIA_DEPOT_PATH=/path/to/user/depot:/path/to/shared/depot. You don’t have to do push! in a startup.jl.

1 Like