Storing the ROOTENV in deps.jl leads to problems
- Dominant language
- Julia
- Stars
- 187
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.