JuliaPy / Conda.jl

Conda managing Julia binary dependencies
Other
174 stars 57 forks source link

Pass --file to `conda config` to avoid writing to `~/.condarc` #141

Closed rofinn closed 5 years ago

rofinn commented 5 years ago

Appears to fix #140

tkf commented 5 years ago

Why this wasn't enough? (A bug in conda?)

https://github.com/JuliaPy/Conda.jl/blob/3f681eee1f23806c35a35932851d51f77e8d1c3d/src/Conda.jl#L104

rofinn commented 5 years ago

I was having difficulting tracking down all the changes between conda 4.5 and 4.6, but it seems like the env is still useful for finding the file, but something in 4.6 is broken where it always defaults to writing the the ~/.configrc file now unless you overwrite it with --file.

tkf commented 5 years ago

I see. It'd be nice to report upstream if it hasn't reported yet (looks like so?).

rofinn commented 5 years ago

I didn't seen an open issue for that specifically, but I can make one. Since I don't see any reference to these variables in the documentation it's possible that they're simply dropping a non-public feature?

tkf commented 5 years ago

Ah, that's possible. I didn't realize that it's not documented. If that's the case I think we should automatically add --file ... option in _set_conda_env instead of doing that in each call site.

rofinn commented 5 years ago

I think it's only an option for conda config though.