Skip to content

Conversation

@johnbillion
Copy link
Member

@johnbillion johnbillion commented Jan 27, 2025

The default cache directory is ~/.wp-cli/cache which means /root/.wp-cli/cache in this container, which isn't writable. This changes it to a path within the temp directory.

Props go to @mikelittle who fixed this in the Altis Local Server container configuration. I'm just copying his solution!

Fixes #122

@johnbillion johnbillion marked this pull request as ready for review January 27, 2025 17:30
@github-actions
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: johnbillion <[email protected]>
Co-authored-by: swissspidy <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@johnbillion johnbillion marked this pull request as draft January 29, 2025 15:34
@johnbillion johnbillion merged commit becc674 into trunk Jan 29, 2025
25 of 33 checks passed
@johnbillion johnbillion deleted the 122-wp-cli-cache-dir branch January 29, 2025 17:15
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.

WP-CLI cache directory not writable

3 participants