Composer settings in `.bp-config\options.js` ignored
See original GitHub issueWhat version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version
?
{
"name": "",
"build": "",
"support": "",
"version": 0,
"description": "",
"authorization_endpoint": "https://login.fr.cloud.gov",
"token_endpoint": "https://uaa.fr.cloud.gov",
"min_cli_version": null,
"min_recommended_cli_version": null,
"api_version": "2.101.0",
"app_ssh_endpoint": "ssh.fr.cloud.gov:2222",
"app_ssh_host_key_fingerprint": "redacted",
"app_ssh_oauth_client": "ssh-proxy",
"doppler_logging_endpoint": "wss://doppler.fr.cloud.gov:443",
"user": "redacted"
}
$ cf version
cf version 6.32.0+0191c33d9.2017-09-26
What version of the buildpack you are using?
buildpack: https://github.com/cloudfoundry/php-buildpack.git
If you were attempting to accomplish a task, what was it you were attempting to do?
I’m attempting to pass options to composer but nothing worked. So with these .bp-config/options.js
{
"WEB_SERVER": "httpd",
"ADMIN_EMAIL": "your-email@example.com",
"COMPOSER_INSTALL_OPTIONS": [
"--this-should-fail"
],
"COMPOSER_VENDOR_DIR": "pbtest"
}
What did you expect to happen?
I expected cf push
to fail with an invalid option as it does on the CLI:
composer --this-should-fail
[Symfony\Component\Console\Exception\RuntimeException]
The "--this-should-fail" option does not exist.
And I expected composer to vendor stuff into pbtest
What was the actual behavior?
- No failure
- SSH into container and
find . -name 'pbtest'
turns up nothing
Completed run, no errors.
Please confirm where necessary:
- I have included a log output
- My log includes an error message
- I have included steps for reproduction
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Config - Composer
This chapter will describe the config section of the composer.json schema. ... you should install required extensions as if you ignore one now...
Read more >Matching patterns from a file returns multiple same outputs in ...
My bash script is inside the bin/ folder, and my .gitattributes is at the root of the project. sh bin/test.sh path. The script ......
Read more >Why default Magento2 .gitignore file ignores composer.json ...
It's a simple question: why does Magento ignore by default package.json, Gruntfile.js and grunt-config.js files?
Read more >How to install Composer packages ignoring PHP version ...
Composer already has a --ignore-platform-reqs option (notice the s in reqs ), but it ignores all platform requirements, including PHP version, extensions (...
Read more >"Tab size" and "use tabs" settings for JavaScript Code Style ...
"Tab size" and "use tabs" settings for JavaScript Code Style are ignored inside script tag when hitting `Tab` · html.png · phpstorm-html-code-style-1.png.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://media.giphy.com/media/AjYsTtVxEEBPO/giphy.gif
I think I see the issue. You have
.bp-config/options.js
, but it should be.bp-config/options.json
. Breaks as expected if I rename the file.