Skip to content

Conversation

@SkyFoxvn
Copy link
Owner

No description provided.

@SkyFoxvn SkyFoxvn changed the title . test Jun 16, 2025
@SkyFoxvn SkyFoxvn changed the title test CI - fix not ussing "symfony-version" for composer package versions Jun 16, 2025
Copy link

@smhg smhg left a comment

Choose a reason for hiding this comment

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

I think if you can try to basically keep composer.json unchanged, it looks promising!

Currently it isn't a great experience as things which should be CI-only now affect the dev experience for no good reason, but hopefully that isn't necessary (see code comments)?

run: composer install --prefer-dist --no-interaction
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
Copy link

Choose a reason for hiding this comment

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

I think you can add --no-update here so the update happens in the next line only.

Copy link

Choose a reason for hiding this comment

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

I would still add this --no-update, because it speeds things up a bit I guess.

composer.json Outdated
"symfony/yaml": "^6.0||^7.0"
},
"require-dev": {
"symfony/flex": "*",
Copy link

Choose a reason for hiding this comment

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

I don't think this is necessary as it gets added in CI?

composer.json Outdated
},
"extra": {
"symfony": {
"require": "7.0"
Copy link

Choose a reason for hiding this comment

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

This seems to be handled by SYMFONY_REQUIRE in CI? I think you can remove it too?

composer.json Outdated
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
Copy link

Choose a reason for hiding this comment

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

These scripts are only necessary for projects, not for libraries like PropelBundle, I think?

@SkyFoxvn
Copy link
Owner Author

SkyFoxvn commented Jun 17, 2025

I think if you can try to basically keep composer.json unchanged, it looks promising!

Currently it isn't a great experience as things which should be CI-only now affect the dev experience for no good reason, but hopefully that isn't necessary (see code comments)?

Done i made the changes you propose it look like everything still work right and each version is installed properly.
Sorry i didnt pay enough attention on this i dont need to to leave them in the composer but actually me experience with composer is not that bigger then the usual require/update commands :) .
If you find something else wrong tell me otherwise i think to merge the branch as i did say it look like its working properly
@smhg

run: composer install --prefer-dist --no-interaction
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
Copy link

Choose a reason for hiding this comment

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

I would still add this --no-update, because it speeds things up a bit I guess.

@smhg
Copy link

smhg commented Jun 17, 2025

I think it would be nice to fix these 2 last comments. But please yes, do merge it (--squash) into the 7.0 branch. It is a great improvement! Thank you! @SkyFoxvn

@SkyFoxvn
Copy link
Owner Author

i think the comment of the "exclude:" part is right on the spot it gives context for later reviews for use or for other ppl who think to fork the project

about "--no-update" well its not working when you add it to the requir,e thats why i did remove it and i just uploaded it second time to confirm that so the result is ignores the given version of symfony components and install always the latest possible same as it was before

@SkyFoxvn SkyFoxvn merged commit f0393b3 into 7.0 Jun 17, 2025
24 checks passed
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.

3 participants