Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Composer settings in `.bp-config\options.js` ignored

See original GitHub issue

What 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": "",
   "token_endpoint": "",
   "min_cli_version": null,
   "min_recommended_cli_version": null,
   "api_version": "2.101.0",
   "app_ssh_endpoint": "",
   "app_ssh_host_key_fingerprint": "redacted",
   "app_ssh_oauth_client": "ssh-proxy",
   "doppler_logging_endpoint": "wss://",
   "user": "redacted"
$ cf version
cf version 6.32.0+0191c33d9.2017-09-26

What version of the buildpack you are using?


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": "",

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

  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:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

dmikusacommented, Jan 23, 2018

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.

Read more comments on GitHub >

github_iconTop 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/ 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found