Skip to content

Conversation

@shish
Copy link
Collaborator

@shish shish commented Dec 2, 2024

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

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
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 && \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something we should de-duplicate using a composer script ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is installing the things necessary for composer to run, then running it - I'm not sure it could be much more de-duplicated ^^;

@staabm staabm merged commit 822cdae into thecodingmachine:master Dec 2, 2024
11 of 12 checks passed
@staabm
Copy link
Collaborator

staabm commented Dec 2, 2024

Thanks

@shish shish deleted the build branch December 2, 2024 19:24
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.

2 participants