question-mark
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.

Move auth.json for composer into the root directory

See original GitHub issue

The composer extension moves composer.json and composer.lock into the root directory but not auth.json if it exists.

auth.json can be used to provide basic authentication credentials. By default composer searches them in COMPOSER_HOME or besides the composer.json. Since only the composer files are moved composer can’t find the auth.json anymore. Therefore I suggest to move the file as well.

Is there a way to run a command before the buildpack/composer starts? I guess that can be used too but I haven’t found such a way yet.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ameyer-pivotalcommented, Apr 19, 2018

@ocean90 Thanks for bringing this up. We’ve addressed it, so keep an eye out for it in the next release, v4.3.53!

0reactions
sclevinecommented, Apr 13, 2018

Prioritzed 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where is composer's global auth.json located? - Stack Overflow
Composer global files can usually be found at your home directory: In a *nix system that is: ~/.composer. auth.json should be in there...
Read more >
Authentication for privately hosted packages and repositories
In this authentication storage method, an auth.json file will be present in the same folder as the projects' composer.json file. You can either...
Read more >
How We Improved Composer Support For Our Premium ...
The auth.json file should be placed beside the composer.json file in your project on the server. This means it doesn't need to be ......
Read more >
Installation - Laravel Nova
Once you have unzipped and placed the Nova source code within the appropriate directory, you are ready to update your composer.json file.
Read more >
Specifying dependencies - App Engine - Google Cloud
You can declare dependencies for PHP in a standard composer.json file. For example: ... Create a file named auth.json in your project root...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found