-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update composer.json #1432
Update composer.json #1432
Conversation
"require": "6.3" installed 6.3.0, but we probably want the latest stable 6.3
Thanks for this proposal. However, I made some quick tests about this and I think this change is not needed. The issue was that we also commit the When I removed the Also, soon we're going to update this project to Symfony 6.4 and 7.0, so we'll update dependencies significantly very soon. Thanks! |
@javiereguiluz using In your test, you probably ran a composer resolution without Flex installed at all (and so not taking this filtering into account) |
OK. Sorry. Let's reopen then. |
This PR is not the right fix though, as the demo intends to lock a specific Symfony minor version, which is not what |
Hmm. I use the demo app to make sure that my bundles work, but I want to test with the latest release version of Symfony. Here's my script that I use to make sure my bundle installs: symfony new --demo command-demo && cd command-demo
# remove the php8.1 lock, allow latest version of Symfony 6.3
sed -i 's/"php": "8.1.0"//' composer.json
sed -i 's/"require": "6.3"/"require": "^6.3"/' composer.json
composer update
# allow command-bundle recipe, which is waiting for PR approval
export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1548/index.json
composer req survos/command-bundle
bin/console --version
yarn install && yarn dev
symfony server:start -d
symfony open:local --path admin/commands
I have php 8.1 on my system, but the sqlite extension isn't installed, so I remove that requirement. I don't understand the purpose to locking to 8.1.
I guess if the demo is supposed to be testing 6.3.0, it needs that requirement, but I always want to make sure that my bundles install with the latest release. Obviously, I'd like to remove those hacky 'sed' commands, which I was I submitted this PR. What would be a better solution? Or maybe it's not necessary, and I should just test my bundles with Symfony 6.3.0. But when I'm creating a new project, I do always want the latest version.
I can't wait to remove these lines! Last I tried installing 6.4 (minimum stability: dev) I ran into an issue, so I guess it's still in active development. This demo application uses older versions of bootstrap and fontawesome, so we can do a review of all the front-end assets as we're moving them to asset-mapper/importmap. Happy to help, in fact, eager to help. |
I've merged this ... but changed the constraint from @tacman some quick comments:
Thanks! |
"require": "6.3" installed 6.3.0, but we probably want the latest stable 6.3