-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add option to ignore cache temporarily #7741
Comments
Pip has the option
I'd like to clarify what you mean. Do you mean that you don't want The latter is governed by Lines 232 to 237 in a4436a5
The former is not yet a conda capability, and an interesting feature request. |
The "skip the package cache and install directly to the environment" concept would also be useful for building docker containers. |
Seems like you have not revisit that "TODO" yet. |
+1 on that so badly - if you modify the original file from one of the installed packages (e.g. accidentally during debugging) and you don't have a local history of that file to revert the change (e.g. you use VSCode without any extension for that) - then the only way (from conda CLI API perspective) to repair things is running... |
Another +1 on this, |
Wouldn't a less destructive workaround be to temporarily mask the other CONDA_PKGS_DIRS=$(mktemp -d) conda install -c /path/to/some/local/channel mypkg This won't cache the installed package(s). If that was needed, then one could also move the stuff from the temp cache to the original afterward: tmp_cache=$(mktemp -d)
CONDA_PKGS_DIRS=${tmp_cache} conda install -c /path/to/some/local/channel mypkg
mv ${tmp_cache}/* /path/to/your/og/cache I suppose this latter would entail a risk of clobbering, but right now the best alternative is completely wiping the cache. So...pick your poison. |
Hi there, thank you for your contribution to Conda! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment and we will gladly reopen the issue. In case this issue was originally about a project that is covered by the Anaconda issue tracker (e.g. Anaconda, Miniconda, packages built by Anaconda, Inc. like Anaconda Navigator etc), please reopen the issue there again. Thanks! |
It is a feature request and it is not at all stale |
Hi what is the status on this feature. It has been nearly 4 years since the request. |
Conda should provide the ability to not honor any cache directory temporarily for a singly invocation. A most common use case for this could be:
This would be helpful for a package developer who has to make several iterations on the same recipe and doesn't want to go through the hurdle of bumping up build number each time. Especially for a package with multiple outputs.
The text was updated successfully, but these errors were encountered: