Issues customizing `JULIAUP_DEPOT_PATH` for VSCode

I’m having some trouble customizing JULIA_DEPOT_PATH through juliaup based on the juliaup repo is that

Before installing Julia/juliaup, I add

export JULIAUP_DEPOT_PATH=/workspace/.julia

to my ~/.bashrc file. I then install juliaup and julia via

curl -fsSL https://install.julialang.org | sh -s -- --path /workspace/.julia/

However, when I run Julia and check DEPOT_PATH, the first entry is still ~/.julia. Any idea of what’s going on?

Specifying

JULIA_DEPOT_PATH=/workspace/.julia

works for the terminal. Did I just misunderstand GitHub - JuliaLang/juliaup: Julia installer and version multiplexer and need to specify both the juliaup and Julia depot paths?

Setting this environment variable doesn’t work for VSCode (I’ve seen some recommendations that I launch it from terminal, but I don’t think that helps if I’m using VSCode to connect remotely through SSH). Is there any way to fix this for VSCode?

I think I got something to work for VSCode based on Unable to set/change Julia environment in vscode · Issue #2631 · julia-vscode/julia-vscode · GitHub. Setting terminal.integrated.env.linux in VSCode seems to allow VSCode to detect JULIA_DEPOT_PATH