Describe the feature
Per the docs:
php-version (optional)
- ...
- If not specified, it looks for the following in order:
- The
php-version-file input if it exists
- A
composer.lock file and the platform-overrides.php value
- A
composer.json file and the config.platform.php value
However, if composer.json file is in a different sub directory, it could not be located correctly.
So it would be better to support specifying a different path of composer.json file.
Please check the latest release
Underlying issue
Currently the filepath is hard-coded. It would be better to make it customizable:
|
const composerJson = 'composer.json'; |
|
if (fs.existsSync(composerJson)) { |
Describe alternatives
No response
Additional context
No response
Are you willing to submit a PR?
Yes
Describe the feature
Per the docs:
However, if
composer.jsonfile is in a different sub directory, it could not be located correctly.So it would be better to support specifying a different path of
composer.jsonfile.Please check the latest release
v2.Underlying issue
Currently the filepath is hard-coded. It would be better to make it customizable:
setup-php/src/utils.ts
Lines 455 to 456 in 85a8dfd
Describe alternatives
No response
Additional context
No response
Are you willing to submit a PR?
Yes