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

wp-env: Allow Cache directory value WP_ENV_HOME to Access from .wp-env.json and .wp-env-override.json #61780

Conversation

iamarunchaitanyajami
Copy link

@iamarunchaitanyajami iamarunchaitanyajami commented May 19, 2024

Description

Allows users to override the cache directory when WP_ENV_HOME set in .wp-env.json and .wp-env-override.json.

How?

{
  "core": null,
  "plugins": [ "." ],
  "config": {
    "WP_ENV_HOME" : "/PATH/TO/YOUR/DIRECTORY"
  }
}

Testing

  1. I used the WP_ENV_HOME variable locally in my .wp-env.json file and verified generated files were placed there.
  2. I also checked that the default location and Environment Variable is still used if the environment variable is not specified.
  3. I also tested that, if the container is running, the start command works successfully after deleting the wp-env home directory.

Types of changes

New Feature

Checklist:

  • My code is tested
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
Copy link

Warning: Type of PR label mismatch

To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.

  • Type-related labels to choose from: [Type] Automated Testing, [Type] Breaking Change, [Type] Bug, [Type] Build Tooling, [Type] Code Quality, [Type] Copy, [Type] Developer Documentation, [Type] Enhancement, [Type] Experimental, [Type] Feature, [Type] New API, [Type] Task, [Type] Technical Prototype, [Type] Performance, [Type] Project Management, [Type] Regression, [Type] Security, [Type] WP Core Ticket, Backport from WordPress Core.
  • Labels found: .

Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task.

Copy link

github-actions bot commented May 19, 2024

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: arunchaitanyajami <ajami@git.wordpress.org>
Co-authored-by: iamarunchaitanyajami <iamarunchaitanyajami@git.wordpress.org>

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

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label May 19, 2024
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @iamarunchaitanyajami! In case you missed it, we'd love to have you join us in our Slack community.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@iamarunchaitanyajami iamarunchaitanyajami changed the title Allow Cache directory value WP_ENV_HOME to Access from .wp-env.json and .wp-env-override.json May 19, 2024
@iamarunchaitanyajami
Copy link
Author

iamarunchaitanyajami commented May 19, 2024

Co-authored-by: arunchaitanyajami ajami@git.wordpress.org

This is my other account, which my local is configured my this account. But both were my accounts and i have all controll over it.

@iamarunchaitanyajami
Copy link
Author

Closing this PULL request, as i am using my old account which i don't want and will rise a new pr

@iamarunchaitanyajami iamarunchaitanyajami deleted the move-ENV-HOME-to-wp-env branch May 19, 2024 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository
2 participants