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

fix: Make the "wasmer cache" command use the same cache directory as the rest of the CLI #4160

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

Michael-F-Bryan
Copy link
Contributor

It turns out the wasmer cache command was using a crate::common::get_cache_dir() helper to get the cache directory, but that helper isn't actually used by anything else (they all use wasmer_registry::wasmer_env::WasmerEnv) and automatically appends the current version number to $WASMER_DIR/cache.

That means wasmer cache clean would try to delete ~/.wasmer/cache/4.1.1 while the rest of the runtime was saving things to ~/.wasmer/cache/compiled, ~/.wasmer/cache/downloads, and so on.

Fixes #4093.

@Michael-F-Bryan Michael-F-Bryan merged commit 66bc2b2 into master Aug 17, 2023
@Michael-F-Bryan Michael-F-Bryan deleted the cache-dir branch August 17, 2023 17:22
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

Successfully merging this pull request may close these issues.

wasmer cache clean/dir doesn't seem to care .wasmer/cache
2 participants