Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/env/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Bug Fix

- Corrected `PATH` to include the host user's Composer bin directory.
- Replaced `yoast/phpunit-polyfills` with `phpunit/phpunit` to install the required PHPUnit version, avoiding the need for project-specific polyfills.

## 8.9.0 (2023-10-05)

## 8.8.0 (2023-09-20)
Expand Down
4 changes: 2 additions & 2 deletions packages/env/lib/init-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ RUN rm /tmp/composer-setup.php`;
// Make sure to do this as the user and ensure the binaries are available in the $PATH.
dockerFileContent += `
USER $HOST_UID:$HOST_GID
ENV PATH="\${PATH}:~/.composer/vendor/bin"
RUN composer global require --dev yoast/phpunit-polyfills:"^1.0"
ENV PATH="\${PATH}:/home/$HOST_USERNAME/.composer/vendor/bin"
RUN composer global require --dev phpunit/phpunit:"^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
USER root`;

return dockerFileContent;
Expand Down