boa icon indicating copy to clipboard operation
boa copied to clipboard

Index for all channels not refreshing on mambabuild

Open gabrielcnr opened this issue 5 years ago • 5 comments

The index repodata cache is not being refreshed for all the conda channels because of the big ttl set on:

https://github.com/mamba-org/boa/blob/fc9050d1f392382b09571e72cffc8554d3003802/boa/cli/mambabuild.py#L71

I think this need to be configurable or, at least, much, much smaller.

@wolfv @marcelotrevisani - what do you think?

I searched at mamba's codebase and the ttl of the cache doesn't seem to be set to a high number there, so it's a problem only for mambabuild.

gabrielcnr avatar Oct 28 '20 18:10 gabrielcnr

I believe that would be nice to have it at least configurable in a certain way maybe something like boa --config local_repodata_ttl=1000

marcelotrevisani avatar Oct 28 '20 18:10 marcelotrevisani

Is it possible to use conda config for that?

For example:

conda config --set boa.local_repodata_ttl 600

Or conda would not allow it because:

CondaValueError: Key 'boa' is not a known primitive parameter.

Does this mean we would have something like a .mambarc or .boarc ?

Can this be passed as a command-line argument to mambabuild for now?

I guess we need your input here @wolfv :-)

gabrielcnr avatar Oct 28 '20 18:10 gabrielcnr

Yeah I'd be happy to have a boarc file! Will need it soon for other stuff. PRs welcome :)

wolfv avatar Oct 28 '20 19:10 wolfv

@wolfv - I'm happy to contribute with the .boarc :-) Do you think we should leverage the Config machinery available from conda (since conda is already a dependency) or implement a new one?

gabrielcnr avatar Oct 28 '20 22:10 gabrielcnr

Good question. Might be better to start a new one, I'm not sure how conda handles unknown keys

wolfv avatar Oct 29 '20 06:10 wolfv