-
Notifications
You must be signed in to change notification settings - Fork 24
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
Path errors when running wp dist-archive
on Windows
#76
Comments
Thanks for the report, @VoHoTv !
There are a lot of hardcoded dist-archive-command/src/Dist_Archive_Command.php Lines 86 to 97 in 8fb85d0
I think the path breaking is building on Windows. Maybe it's as simple as replacing the Feel free to submit a pull request, if you'd like. Here is some guidance on our pull request best practices. |
wp dist-archive
on Windows
Looks like there's a couple of things going on here:
Take a look at what wp_normalize_path() and path_is_absolute() do. WordPress Core commonly uses these in similar scenarios. |
@costdev Just did some tests and when I replace the current conditions which check if it's an absolute path: "if ( 0 !== strpos( $path, '/' ) ) {}" and "if ( 0 !== strpos( $archive_path, '/' ) ) {}" And replace it with a copy of the 2 functions you mentioned it works indeed. |
Hi There, I am fetching the same issue. Is it fixed or Not? |
@shamimipt It's not fixed, no. Feel free to submit a pull request, if you'd like. Here is some guidance on our pull request best practices. I think we'll also want to get tests running on Windows wp-cli/wp-cli-tests#155 |
@VoHoTv @shamimipt Can you install the |
@VoHoTv Thank you so much. |
Hi there! When running the wp dist-archive command I am getting the following erorr:
"Target directory does not exist: C:\Users\USER\Local Sites\het-lokaal\app\public\wp-content\themes\lokaal/C:\Users\USER\Local Sites\het-lokaal\app\public\wp-content\themes\lokaal/C:\Users\USER\Local Sites\het-lokaal\app\public\wp-content\themes"
Is this some kind of misconfiguration on my system? Or am I missing some parameter? Thank you so much!
The text was updated successfully, but these errors were encountered: