Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Storing the ROOTENV in deps.jl leads to problems #183

Open
mmaeusezahl opened this issue Jun 14, 2020 · 2 comments
Open

Storing the ROOTENV in deps.jl leads to problems #183

mmaeusezahl opened this issue Jun 14, 2020 · 2 comments

Comments

@mmaeusezahl
Copy link

mmaeusezahl commented Jun 14, 2020

I confess this is really an edge case, but I'm still reporting this, since this package was the only Julia package on my PC that responded incorrectly(? -> not sure if this is documented behavior anyways ;) ).

I had to change the location of JULIA_DEPOT_PATH (Windows PC, would be the same on Linux I'm sure). This was due to storage space limitations in the previous location. What I did:

  1. Moved the whole C:\oldPath\.julia to the new location D:\newPath\.julia
  2. Set the JULIA_DEPOT_PATH environment variable to be D:\newPath\.julia
  3. Continues using Julia

Everything worked fine except, that after a while I noticed that Conda (and only Conda) started to write into C:\oldPath\.julia\conda (and weirdly also in D:\newPath\.julia\conda)

I traced that problem down to the deps.jl file(s) which I of course also copied over, and which still contained the the old const ROOTENV = "C:\\oldPath\\.julia\\conda\\3".

The solution for me was to delete the deps.jl files and rebuild Conda.

I still think that no package should store information / assumptions about where JULIA_DEPOT is located, but much rather respond dynamically to its location whenever it gets loaded. But I'm pretty certain this is undocumented behavior.

(OT: Would be happy to fix and open a PR, but I wanted to hear what you'd expect to happen in such a case anyways)

@mmaeusezahl
Copy link
Author

This issue also affects other people:
https://discourse.julialang.org/t/conda-rootenv-path-wrong/45186

@mmaeusezahl mmaeusezahl changed the title Edge case when changing JULIA_DEPOT_PATH Storing the ROOTPATH in deps.jl leads to problems Aug 23, 2020
@mmaeusezahl mmaeusezahl changed the title Storing the ROOTPATH in deps.jl leads to problems Storing the ROOTENV in deps.jl leads to problems Aug 23, 2020
@stevengj
Copy link
Member

We should really use the new Pkg preferences mechanism…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants