[BUG] Custom `JULIA_DEPOT_PATH` not being respected
MilesCranmer opened this issue · comments
Hey @Roger-luo,
Great package, I am really enjoying it. I'm using it for the CLI in AirspeedVelocity.jl and it has been great.
Describe the bug
When you have set a custom JULIA_DEPOT_PATH
, running comonicon_install()
does not respect it, and will install to ~/.julia/bin
. This even happens if ~/.julia
does not exist prior to running this command.
Version of the package:
v1.0.4
To Reproduce
Steps to reproduce the behavior:
- In a virtual container, install Julia at a path other than $HOME. Set
JULIA_DEPOT_PATH
to point to that custom directory. - Install and build
AirspeedVelocity
.
You will see the executables have been saved at ~/.julia/bin/*
, rather than ${JULIA_DEPOT_PATH}/bin/*
, where they should be installed.
Thanks for any help.
Best,
Miles
changing this default value to get(ENV, "JULIA_DEPOT_PATH", ".julia")
should fix it