From 3c7f38632546bcdd2058e1f12dbc518bdfd8417a Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 2 Dec 2024 18:39:30 +0000 Subject: [PATCH] make build.sh more accurately match what the github workflow does we need to do `composer install` for both the generator and the generated files, because phpcbf needs to be run from the output directory using the output-directory config files -- this PR makes it so that running `./.devcontainer/build.sh` should generate byte-identical output to the regen-bot --- .devcontainer/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e2b482e9..cea8fa13 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -3,4 +3,6 @@ ARG DEBIAN_FRONTEND=noninteractive ARG XDEBUG_MODE=coverage RUN apt update -y && apt install -y git composer php-cli php-dom php-curl php-xdebug vim WORKDIR /app -CMD cd /app/generator/doc && ./update.sh && cd /app/generator && composer install && php ./safe.php generate && composer cs-fix +CMD cd /app/generator/doc && ./update.sh && \ + cd /app && composer install && \ + cd /app/generator && composer install && php ./safe.php generate