Order of `JULIA_DEPOT_PATH` not hornored?

Using Julia on a HPC setup:

[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

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:

[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