# Order of \`JULIA\_DEPOT\_PATH\` not hornored?

**URL:** <https://discourse.julialang.org/t/order-of-julia-depot-path-not-hornored/75299>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 27, 2022, 2:46pm UTC](https://discourse.julialang.org/t/order-of-julia-depot-path-not-hornored/75299 "2022-01-27T14:46:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [January 27, 2022, 2:46pm UTC](https://discourse.julialang.org/t/order-of-julia-depot-path-not-hornored/75299/1 "2022-01-27T14:46:38Z")

</div>

Using Julia on a HPC setup:

```julia
[jiling]~% which julia           
/cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc8-opt/bin/julia

[jiling]~% echo $JULIA_DEPOT_PATH
/afs/cern.ch/user/j/jiling/.julia:/cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc8-opt/share/julia

[jiling]~% julia --startup-file=no -e 'using Pkg; Pkg.add("Revise")'
   Resolving package versions...
   Installed Requires ───────── v1.3.0
   Installed CodeTracking ───── v1.0.6
   Installed LoweredCodeUtils ─ v2.2.0
   Installed JuliaInterpreter ─ v0.9.2
   Installed Revise ─────────── v3.3.1
ERROR: SystemError: opening file "/cvmfs/sft.cern.ch/lcg/releases/jl_ijulia/1.23.2-7e756/x86_64-centos7-gcc8-opt/share/julia/environments/v1.6/Project.toml": Read-only file system

```

the first path in the `JULIA_DEPOT_PATH` exists and can be used if I spin up a local Julia for testing

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [January 27, 2022, 3:13pm UTC](https://discourse.julialang.org/t/order-of-julia-depot-path-not-hornored/75299/2 "2022-01-27T15:13:47Z")

</div>

thanks @fredrikekre for the solution via Slack

The problem is active project only exists in the second DEPOT\_PATH, fix it by making a `Project.toml` at the correct version environment in the first DEPOT\_PATH:

```julia
[jiling]~% julia --startup-file=no -e 'Base.active_project() |> println'
/cvmfs/sft.cern.ch/lcg/views/LCG_101/x86_64-centos7-gcc8-opt/share/julia/environments/v1.6/Project.toml

[jiling]~% mkdir -p /home/jiling/.julia/environments/v1.6/            
[jiling]~% touch /home/jiling/.julia/environments/v1.6/Project.toml
[jiling]~% julia --startup-file=no -e 'Base.active_project() |> println'
/home/jiling/.julia/environments/v1.6/Project.toml

```
