You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also think I know why the confusion, and that is because the command composer global is legitimate but not related with composer config --global.
Does this make sense? Am I on the right track here? We have spent so much time trying to figure out why our commits/PRs constantly fail due to authentication and this is right now the only logical explanation I found.
@w00fz
The difference between the 2 commands is, by default:
composer global config updates the composer.json in COMPOSER_HOME. Reference
composer config --global updates the config.json in COMPOSER_HOME. Reference
Upon testing, you are right as composer does not use the config in composer.json file, but it uses the config.json file. So I will change the commands.
Describe the bug
We are constantly getting the infamous
"Error: Could not authenticate against github.com"
like appears in #332I think the problem is that
composer config global
is being used to authenticate as seen for example in https://github.com/shivammathur/setup-php/blob/develop/src/scripts/common.sh#L197 - However as per documentation it should becomposer config --global
(reference).I also think I know why the confusion, and that is because the command
composer global
is legitimate but not related withcomposer config --global
.Does this make sense? Am I on the right track here? We have spent so much time trying to figure out why our commits/PRs constantly fail due to authentication and this is right now the only logical explanation I found.
Places where this is an issue:
setup-php/src/scripts/common.sh
Line 194 in d2f5871
setup-php/src/scripts/common.sh
Line 197 in d2f5871
setup-php/src/scripts/win32.ps1
Line 204 in a83d437
setup-php/src/scripts/win32.ps1
Line 207 in a83d437
Version
v1
orv2
.v2
v1
Runners
Operating systems
Linux, Ubuntu
PHP versions
Are you willing to submit a PR?
Of course, I want to make sure this is the right problem.
The text was updated successfully, but these errors were encountered: