Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] Custom JULIA_DEPOT_PATH not being respected #238

Closed
MilesCranmer opened this issue Apr 22, 2023 · 1 comment · Fixed by #240
Closed

[BUG] Custom JULIA_DEPOT_PATH not being respected #238

MilesCranmer opened this issue Apr 22, 2023 · 1 comment · Fixed by #240
Labels
bug Something isn't working

Comments

@MilesCranmer
Copy link

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:

  1. In a virtual container, install Julia at a path other than $HOME. Set JULIA_DEPOT_PATH to point to that custom directory.
  2. 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

@MilesCranmer MilesCranmer added the bug Something isn't working label Apr 22, 2023
@Roger-luo
Copy link
Collaborator

changing this default value to get(ENV, "JULIA_DEPOT_PATH", ".julia") should fix it

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants