Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer won't accept valid responses to user prompt #8365

Open
olivertappin opened this issue Oct 8, 2019 · 1 comment

Comments

@olivertappin
Copy link

commented Oct 8, 2019

When running composer update and it's left doing its thing for a little while, occasionally I run into this:

 Update failed (The process "git remote set-url composer 'git@github.com:my-organization/my-project.git' && git rev-parse --quiet --verify 'e06246ea4afee2228043af71a7cf37ce3b260abb^{commit}' || (git fetch composer && git fetch --tags composer)" exceeded the timeout of 300 seconds.)

And composer asks us:

Would you like to try reinstalling the package instead [yes]?

When typing one of the responses defined:

Please answer yes, y, no, or n.

Composer does not accept the valid response, until you try a few times. I can assure you there is no additional white space either side of the yes.

In this scenario, I get the following output:

Executing command (/app/vendor/my-organization/my-project): git remote set-url composer 'git@github.com:my-organization/my-project.git' && git rev-parse --quiet --verify 'e06246ea4afee2228043af71a7cf37ce3b260abb^{commit}' || (git fetch composer && git fetch --tags composer)
The authenticity of host 'github.com (140.82.118.4)' can't be established.
RSA key fingerprint is SHA256:ntHbg6kUXpJWGl7E1IGOCspRomTxdCARLviKw6F5SY8.
RSA key fingerprint is MD5:16:27:ac:d5:76:28:2f:36:63:1b:56:4e:eb:de:a6:48.
Are you sure you want to continue connecting (yes/no)? Failed: [Symfony\Component\Process\Exception\ProcessTimedOutException] The process "git remote set-url composer 'git@github.com:my-organization/my-project.git' && git rev-parse --quiet --verify 'e06246ea4afee2228043af71a7cf37ce3b260abb^{commit}' || (git fetch composer && git fetch --tags composer)" exceeded the timeout of 300 seconds.
    Update failed (The process "git remote set-url composer 'git@github.com:my-organization/my-project.git' && git rev-parse --quiet --verify 'e06246ea4afee2228043af71a7cf37ce3b260abb^{commit}' || (git fetch composer && git fetch --tags composer)" exceeded the timeout of 300 seconds.)
    Would you like to try reinstalling the package instead [yes]? yes
 Please answer yes, y, no, or n. 
    Would you like to try reinstalling the package instead [yes]? yes
 Please answer yes, y, no, or n. 
    Would you like to try reinstalling the package instead [yes]? yes
Please type 'yes' or 'no': yes
  - Removing my-organization/my-project (dev-feature/checks)
Executing command (/app/vendor/my-organization/my-project): git show-ref --head -d
Executing command (/app/vendor/my-organization/my-project): git diff --name-status composer/feature/checks...feature/checks --
Executing command (/app/vendor/my-organization/my-project): git status --porcelain --untracked-files=no
Executing command (CWD): rm -rf '/app/vendor/my-organization/my-project'
  - Installing my-organization/my-project (1.0.5): Executing command (CWD): git --version
Cloning e06246ea4afee2228043af71a7cf37ce3b260abb

And I expected this to happen:

Executing command (/app/vendor/my-organization/my-project): git remote set-url composer 'git@github.com:my-organization/my-project.git' && git rev-parse --quiet --verify 'e06246ea4afee2228043af71a7cf37ce3b260abb^{commit}' || (git fetch composer && git fetch --tags composer)
The authenticity of host 'github.com (140.82.118.4)' can't be established.
RSA key fingerprint is SHA256:ntHbg6kUXpJWGl7E1IGOCspRomTxdCARLviKw6F5SY8.
RSA key fingerprint is MD5:16:27:ac:d5:76:28:2f:36:63:1b:56:4e:eb:de:a6:48.
Are you sure you want to continue connecting (yes/no)? Failed: [Symfony\Component\Process\Exception\ProcessTimedOutException] The process "git remote set-url composer 'git@github.com:my-organization/my-project.git' && git rev-parse --quiet --verify 'e06246ea4afee2228043af71a7cf37ce3b260abb^{commit}' || (git fetch composer && git fetch --tags composer)" exceeded the timeout of 300 seconds.
    Update failed (The process "git remote set-url composer 'git@github.com:my-organization/my-project.git' && git rev-parse --quiet --verify 'e06246ea4afee2228043af71a7cf37ce3b260abb^{commit}' || (git fetch composer && git fetch --tags composer)" exceeded the timeout of 300 seconds.)
    Would you like to try reinstalling the package instead [yes]? yes
  - Removing my-organization/my-project (dev-feature/checks)
Executing command (/app/vendor/my-organization/my-project): git show-ref --head -d
Executing command (/app/vendor/my-organization/my-project): git diff --name-status composer/feature/checks...feature/checks --
Executing command (/app/vendor/my-organization/my-project): git status --porcelain --untracked-files=no
Executing command (CWD): rm -rf '/app/vendor/my-organization/my-project'
  - Installing my-organization/my-project (1.0.5): Executing command (CWD): git --version
Cloning e06246ea4afee2228043af71a7cf37ce3b260abb
@alcohol

This comment has been minimized.

Copy link
Member

commented Oct 9, 2019

Unfortunately this one needs a reproducible scenario in order to pin down where things go wrong.

Also I am wondering where this alternative response suddenly comes from (last line):

    Would you like to try reinstalling the package instead [yes]? yes
 Please answer yes, y, no, or n. 
    Would you like to try reinstalling the package instead [yes]? yes
 Please answer yes, y, no, or n. 
    Would you like to try reinstalling the package instead [yes]? yes
Please type 'yes' or 'no': yes
@alcohol alcohol added the Support label Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.