# Startup.jl being replaced constantly

**URL:** <https://discourse.julialang.org/t/startup-jl-being-replaced-constantly/121185>\
**Category:** New to Julia\
**Created:** [October 11, 2024, 9:22am UTC](https://discourse.julialang.org/t/startup-jl-being-replaced-constantly/121185 "2024-10-11T09:22:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gilham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gilham/32/212559_2.png) [@Gilham](https://discourse.julialang.org/u/Gilham)\
**Post date:** [October 11, 2024, 9:22am UTC](https://discourse.julialang.org/t/startup-jl-being-replaced-constantly/121185/1 "2024-10-11T09:22:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [October 11, 2024, 10:28am UTC](https://discourse.julialang.org/t/startup-jl-being-replaced-constantly/121185/2 "2024-10-11T10:28:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [October 11, 2024, 12:52pm UTC](https://discourse.julialang.org/t/startup-jl-being-replaced-constantly/121185/3 "2024-10-11T12:52:18Z")

</div>

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`.
