-
-
Notifications
You must be signed in to change notification settings - Fork 28
feat: read supported versions from composer.json #536
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
base: master
Are you sure you want to change the base?
Conversation
|
Will this work, when devkit is downloaded by phpqa to update its own readme? 🤔 https://github.com/jakzal/phpqa/blob/2669c74fc430897f906674b07ac6b6fa32148054/Makefile#L45-L47 |
Nice catch, it seems Box removes |
|
Box supports generating metadata for the phar, but that would not work outside of phar 🤔 |
The tool itself should know (and does, since that's in composer.json) which versions it supports, that shouldn't be externalized IMO. |
|
@jakzal what if we force Box to add composer.json as any other file? Then composer.json is always there and it should work in all use cases, and the PHAR knowing which versions are supported (it being built-in information) is correct IMO. |
|
@dkarlovi I tried that, but despite the following config added to "files": [
"composer.json"
] |
|
This works: "exclude-composer-files": false, |
|
So, since we can now assume composer.json is always present, shall we resume here with that tweak to Box config? Or did you have something else in mind? |
|
I'm a bit worried reliance on |
NHF, but yes, I think so. TBH. 😄
Since the toolbox is meant to install tools which run on your PHP version, being able to install toolbox on PHP versions which it itself doesn't support any tools for is IMO a weird niche to worry about. From my POV, if you can install it, it supports your PHP version. If you cannot install it, it doesn't. PHP versions in composer.json are exactly the versions we want here, even if technically toolbox could run on more versions, why would it? To tell you "Aschtually, this PHP Version is not supported"? Composer can do that by refusing to install. |
|
Ok, let's go with it. |
Closes #535